DROP OWNED drops all the objects within the current database that are owned by one of the specified roles.
Any privileges granted to the given roles on objects in the current database or on shared objects will also be revoked.
drop_owned ::= DROP OWNED BY role_specification [ , ... ] [ CASCADE | RESTRICT ] role_specification ::= role_name | CURRENT_USER | SESSION_USER
Automatically drop objects that depend on the affected objects.
This is the default mode and will raise an error if there are other database objects that depend on the dropped object(s).
- Drop all objects owned by john.
yugabyte=# drop owned by john;