Skip to main content
0 reactions

How to Remove a Server from pgAdmin 4

Featured card for the guide Remove a Server from pgAdmin 4, with a checklist: right-click the server, Remove Server, confirm with Remove, and the databases stay.
How to Remove a Server from pgAdmin 4

Registered a server twice, or no longer need one? Remove it from pgAdmin 4’s list. Only pgAdmin’s entry goes; the PostgreSQL server and its databases stay as they are.

Every screen on this page is real, from pgAdmin 4 9.19 with PostgreSQL 19 on macOS.

Step 1: Choose Remove Server

In the Object Explorer, right-click the server and choose Remove Server. This guide removes an entry named Local Server:

The menu that opens when you right-click Local Server in the Object Explorer, with Remove Server highlighted.
Right-click the server and choose Remove Server.

The menu shows its keyboard shortcut too: Option-Shift-D on a Mac.

Step 2: Confirm

pgAdmin asks first. Click Remove:

The Remove Server? box asking Are you sure you want to remove the server Local Server? with Cancel and Remove buttons.
Click Remove to confirm.

Step 3: Check the List

The entry is gone:

The Object Explorer showing Servers (1), with only PostgreSQL 19 left and still connected.
Local Server is gone; PostgreSQL 19 is still there and connected.

PostgreSQL 19, a second entry for the same server, is still connected: removing an entry doesn’t stop the server or delete anything in it.

FAQ

Does Remove Server delete my databases?

No. It only deletes pgAdmin’s saved entry for the server. Here, the same PostgreSQL server stayed connected through its other entry.

Can I get the entry back?

Yes. Register the server again, as How to Register a Server in pgAdmin 4 shows.

Conclusion

Right-click the server in the Object Explorer, choose Remove Server and click Remove. pgAdmin forgets the entry, and the server itself keeps running.

Additional Resources

Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.

0 comments