delete database command in postgresl code example Example 1: use database postgres command \c databasename; Example 2: delete all content in table mysql TRUNCATE tablename