PostgreSQL ERROR: role cannot be dropped because some objects depend on it

We are going to see the solution for “PostgreSQL ERROR: role cannot be dropped because some objects depend on it”

ERROR: role "james" cannot be dropped because some objects depend on it DETAIL: owner of database emp 6 objects in database r2schools 1 object in database postgres 3 objects in database newdb 3 objects in database emp

PostgreSQL ERROR:  role cannot be dropped because some objects depend on it

Solution:
Continue reading PostgreSQL ERROR: role cannot be dropped because some objects depend on it