That depends on exactly what you deleted. If you didn't delete the Data folder you'll be able to reconnect to it when you install the same major version of PostgreSQL - see the guide in the
Documentation.
If you deleted the Data folder then unless you have a
Backup of your database you'll need to re-import from the hand history files.