I was trying to delete one folder on lightroom 5 but ended up deleting the whole catalogue. Is there anyway of retrieving them!
You can retrieve the catalog from Lightroom Catalog backups if you have created any.
Restore a backup catalog
You may also check the trash or Recycle bin as the folders might exist there if you have not deleted them permanently from your system.
Retrieving data ...