Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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 think you should improve your accept rate, even if sometimes what you're looking for is not possible, you'll have to accept the most helpful answer, mainly to help others with the same problem. – Lipis Mar 23 '12 at 18:27

2 Answers

up vote 4 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
1  
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

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

 
discard

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.