Last active
July 18, 2023 14:07
-
-
Save bigsnarfdude/05aa4c0555014ca86ef33d699557a08a to your computer and use it in GitHub Desktop.
delete users from redshift
This file contains hidden or 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
select * from "pg_namespace" ; | |
revoke select on all tables in schema main_production from user; | |
revoke usage on schema main_production from user; | |
revoke select on all tables in schema main_production from user; | |
revoke usage on schema main_production from user; | |
revoke all on all table in schema from user; | |
revoke all on all tables in schema from user; | |
drop user modeuser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment