clear postgres database postgres code example
Example 1: clear postgres terminal
If you are using Linux, type-in the following to clear the screen
<dbname>=# \! clear
Example 2: postgres clear table
TRUNCATE [ TABLE ] [ ONLY ] name [ * ] [, ... ]
[ RESTART IDENTITY | CONTINUE IDENTITY ] [ CASCADE | RESTRICT ]