cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We've been busy working on some major updates to the Community, so check out what's changing, what’s staying the same and what you can expect from the Dropbox Community right here.

Delete, edit, and organize

Solve issues with deleting, editing, and organizing files and folders in your Dropbox account with support from the Dropbox Community.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Find and delete all empty files

Find and delete all empty files

esmewang
Explorer | Level 3

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?

10 Replies 10

Jay
Dropbox Staff

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


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

esmewang
Explorer | Level 3
Hi—the answer is yes to all of those questions.

Thank you!

Jay
Dropbox Staff

Thanks for the info. Are you able to delete the empty files from the Dropbox site directly?


Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

esmewang
Explorer | Level 3

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. 

Megan
Dropbox Staff

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


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

esmewang
Explorer | Level 3

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

 

 

 

 

esmewang
Explorer | Level 3

I mean, permission denied.

 

 

Megan
Dropbox Staff

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


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

esmewang
Explorer | Level 3
But this is still a process that would mean going through my hundreds of Dropbox folders and sorting them by size. Is there a shortcut to this? A code or an app or something that deletes empty files?
Need more support?