Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I remove files from a repository via the Bitbucket interface?

I went into the Admin tab for a repository and found how to delete an entire repository, but I cannot remove single files and folders. Thank you.

share|improve this question
I am awesome! Of course, there is the fact that you can't, because it is a version control site, not a file sync site. Odd that you can edit the files though. – The Great Widi Jan 15 '14 at 21:50
up vote 5 down vote accepted

It's not really possible by design. You have to do it locally and then push the new changes. Online you can only view the repositories.

share|improve this answer
Is there a reason they don't allow this? – David Faux Mar 23 '12 at 2:57
Yes.. there many reasons... it is not Dropbox and their target is mainly the programmers. Because it's a version control system and for every little change you need to log it.. something that is done in batches.. There are different ways to delete a single file and then if they are going to implement them all.. people would start wondering.. why not having a copy/move/etc... – Lipis Mar 23 '12 at 9:30
Funny how you can do it on GitHub. – JohnK Aug 12 '13 at 15:25

You may be able get there part way if the files were added as part of single changeset. The admin interface lets you strip individual changesets, which would undo this. There are a bunch of caveats:

Stripping is a convenient way to remove changesets, but it manipulates history. If one strips a changeset that others have already pulled, it's likely to be pushed to the repository again unless every other contributor performs the strip locally.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.