I want to drop my tables in database. But, when I use, for example, DROP TABLE if exists users; I receive this message:
DROP TABLE if exists users;
cannot drop tab
Use the cascade option:
cascade
DROP TABLE if exists users cascade;
this will drop any foreign key that is referencing the users table or any view using it.
users
It will not drop other tables (or delete rows from them).