Delete a File / Folder
To delete a file or folder, follow the steps below:
- Log in to your account using your Username and Password.
- Navigate to and select the file you want to delete.
- Click Delete in the top menu.
- Click Delete again to confirm.
Troubleshooting
If unable to delete a folder or file, you can try the following steps:
- Sometimes one stubborn file can prevent a folder from being deleted because it is "not empty". In this case the solution is to:
- Go into the folder by clicking the folder name
- Click Select All
- Click Delete
- Repeat for any subfolders that remain
- Go back up to the parent folder and try deleting it again
- If you are not the original creator/uploader you may not have permissions to delete this.
- The server will return an HTTP Error 403 Forbidden in this case
- However you may not see this error unless you have the web browser's developer tools open to the network tab when making the request
- You can check the small print next to the file name for the username of the file owner/uploader
- Login with this account to delete it if you have access, or...
- If you know this user, you can request they delete it on your behalf.
- Ask your site administrator to delete it
- The server will return an HTTP Error 403 Forbidden in this case
- If the folder name contains any special characters:
- Try renaming the folder without those characters
- Then try to delete again
- In some rare cases, when a folder or file is deleted, its metadata persists in the database, and you will see a "ghost file"
- You can tell it's a ghost file when you attempt to open it and are redirected to a Gitshare API Page showing Error 404 "Path not found"
- In this case the solution is to create a folder and/or upload a file with the exact same name (case sensitive)
- Then try to delete it again. That should remove the metadata from the database.
- If none of the above has worked, submit a support request including the following details:
- The full path to the folder or file
- The username you are using to delete
- Screenshot of any error message you receive
- The date and time of the latest error, with the time zone
- Any steps you have already taken