Sometimes your FTP program refuses to delete a file or a folder on your service. The server always says why: its answer starts with 550 and is shown in the message log of the FTP program, in FileZilla in the pane at the top, in the lines that start with Response:. Find your answer below.


550 Permission denied

550 downloads/Example/file.txt: Permission denied

The folder that holds the file is write-protected. Some programs create folders like this when they unpack or copy files. Nothing can be deleted inside such a folder until you allow writing again.

In FileZilla: right-click the folder and choose File permissions.... Enter 755 in Numeric value, tick Recurse into subdirectories, choose Apply to directories only and click OK. Then delete the folder again.

Over SSH, one command does the same for the folder and everything in it:

chmod -R u+w ~/downloads/Example

550 Directory not empty

550 downloads/Example: Directory not empty

The folder still contains something, although it looks empty. FTP programs do not show hidden files, and a hidden file keeps the folder from being deleted. The names of hidden files start with a dot, for example .DS_Store.

In FileZilla, tick Server > Force showing hidden files, open the folder again, delete what is left in it and then the folder itself.

The same answer comes when a write-protected folder is inside; then follow the section above.

Deleting Takes Very Long or Stops

FTP deletes every file with a separate command. For a folder with many thousands of files this takes long, and the connection can break in the middle. Delete such a folder over SSH (below) or in the browser: ruTorrent File Manager: Copy, Move, Pack and Delete Files in the Browser.

The Torrent Client Complains After You Deleted a File

A file that your torrent client still seeds or downloads belongs to that torrent. Remove the torrent in the client, together with its data, instead of deleting the file by FTP. Otherwise the client reports missing files and may download them again.

Delete Over SSH

Connect first: How to Connect to Your App Hosting Service via SSH. A single file:

rm ~/downloads/example.iso

A folder with everything in it:

rm -r ~/downloads/Example

Put a name with spaces between quotes: rm -r ~/downloads/"My Folder". If the answer is Permission denied, run the chmod command from the first section and repeat.

⛔ There is no recycle bin

rm deletes at once and does not ask. Read the path twice before you press Enter, and never run it on your whole home folder or on ~/downloads itself.

Still Not Possible?

Look who owns the file or folder:

ls -ld ~/downloads/Example

The third word of the answer is the owner. If it is not your own username, you cannot change or delete the item yourself. Open a support ticket and send us this line.

Good to Know

Was this answer helpful? 172 Users Found This Useful (342 Votes)