REMOVE EXISTING SITE FILES
- If site files currently exist but are either corrupted or unwanted…
- In Terminal, use the following command line to remove the current WP Install:
ssh user@host "rm -r -f destination/dir"
-
- where user@host is from main SFTP login info for this cPanel account (For example, it might be [email protected].)
- ***Be sure you know the correct directory before deleting, since this cannot be undone.
- ***Be sure not to delete the public_html folder.***
- destination/dir represents the file path to the directory where the WP files for this particular site start. For example, if this WP install is located in a store folder within the public_html folder for this cPanel account, the path would be public_html/store. In many cases the path might be just public_html. (You can use FTP or FileManager to locate the path if needed.) If files are located directly in the public_html folder, you can delete each of the wp-content, wp-admin, wp-includes… folders individually, and the single files in that folder via FTP.
- The other parts of this script should be typed exactly as shown.
- Verify that the has been deleted via FTP.