DROP OWNED
Function
DROP OWNED deletes the database objects of a database role.
Precautions
The role's permissions on all the database objects in the current database and shared objects (databases and tablespaces) are revoked.
Syntax
         1
          | 
        
         DROP OWNED BY name [, ...] [ CASCADE | RESTRICT ];  | 
       
Parameter Description
| 
         Parameter  | 
       
         Description  | 
       
         Value Range  | 
      
|---|---|---|
| 
         name  | 
       
         Name of the role whose objects are to be deleted and whose permissions are to be revoked.  | 
       
         An existing role name.  | 
      
| 
         CASCADE | RESTRICT  | 
       
         Specifies how to process related data in the dependent object when a delete operation is performed.  | 
       
        
  | 
      
Example
Remove all database objects owned by role u1.
         1
          | 
        
         DROP OWNED BY u1;  | 
       
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.