You can use:
drop user :my_schema;
or
drop user :my_schema cascade;
If the user has restrictions in other tables, they will not be deleted.
drop table x cascade constraints; etc.
The only problem is that you lose everything and start all over again. If there is a script in the database, you just need to restart the script to reload it.
source
share