Need to delete a wordpress website from Cpanel

Instead of delete, you can move all files from /wp to root folder.

Then use this script to replace url from example.com/wp to example.com inside the database https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Follow these few steps.

  1. Move all your website files to root from /wp folder.
  2. Upload the script folder to your web root.
  3. Browse to the script file URL in your web browser. eg. http://example.com/Search-Replace-DB/
  4. Fill in the fields as needed.
  5. Hit on run button

It will replace all your old string to your new string inside the database.