Delete, edit, and organize
Solve issues with deleting, editing, and organizing files and folders in your Dropbox account with support from the Dropbox Community.
Because of a problem I had with data transfer a while back, I now have hundreds of empty files in Dropbox. When I tried to find and delete them all in Terminal, I can't because of a lack of permission. How can I find and delete all empty files in my Dropbox account?
Hi @esmewang, thanks for bringing this to our attention.
Are the files visible on the Dropbox site or the Dropbox folder?
Is the Dropbox desktop application currently installed an running on your machine?
This will help me to assist further!
Jay
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
Thanks for the info. Are you able to delete the empty files from the Dropbox site directly?
Jay
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
Yes, I can delete them one by one. The problem is that I have hundreds of these, and I can only find out if a file has zero bytes by clicking on it, which is why I was trying to do it in Terminal.
Hey @esmewang, sorry to jump in here!
The safest way to go on about it would be either through the app, or through the website. As for the terminal, what kind of error do you get on your end when you try?
Megan
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
When I try and do this through Terminal:
/users/***/dropbox find -type f -empty -print (so that I can see and then delete them)
I get this message:
zsh: access denied: /users/***/dropbox
I mean, permission denied.
Hi @esmewang, you could also try to sort your files by Size.
That way you'll be able to locate all your 0kb files faster, and then delete them.
Megan
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!