This topic describes how to lock or delete an account from an ApsaraDB RDS for PostgreSQL instance.
Lock an account in the ApsaraDB RDS console
Note After an account is locked, you cannot use the account to log on to the RDS instance.
Delete an account in the ApsaraDB RDS console
Note If the account that you want to delete is granted permissions on databases, tables,
or other objects, the "
Some objects depend on account
" message is displayed when you attempt to delete the account. You can delete the
account only after you remove the permissions of the account.
- Access RDS Instances, select a region at the top, and then click the ID of the target RDS instance.
- In the left-side navigation pane, click Accounts.
- Find the account that you want to delete, and click Delete in the Actions column.
- In the message that appears, click OK.
Delete a standard account by using SQL statements
Note If the account that you want to delete is granted permissions on databases, tables,
or other objects, the "
ERROR: current user cannot be dropped
" message is displayed when you attempt to delete the account. You can delete the
account only after you remove the permissions of the account.
Related operations
Operation | Description |
---|---|
Delete an account | Deletes an account from an ApsaraDB RDS instance. |
Lock account | Locks an account of an ApsaraDB RDS instance. |
Unlock account | Unlocks an account of an ApsaraDB RDS instance. |