Created
August 1, 2019 08:09
-
-
Save moraisaugusto/3d16ee17ce2e8fdfc5fda32c3171c53a to your computer and use it in GitHub Desktop.
Remove user/role from Postgres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA public FROM username; | |
REVOKE ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public FROM username; | |
REVOKE ALL PRIVILEGES ON ALL FUNCTIONS IN SCHEMA public FROM username; | |
DROP USER username; | |
DROP ROLE username; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment