SyntaxFix
Write A Post
Hire A Developer
Questions
Or if the role is not the owner of any db objects one can use:
DROP ROLE IF EXISTS my_user; CREATE ROLE my_user LOGIN PASSWORD 'my_password';
But only if dropping this user will not make any harm.