how to clear all entries from a table in postgres code example
Example 1: delete all entries postgres
DELETE FROM tablename;
Example 2: postgres clear table
TRUNCATE [ TABLE ] [ ONLY ] name [ * ] [, ... ]
[ RESTART IDENTITY | CONTINUE IDENTITY ] [ CASCADE | RESTRICT ]