Removal of bitbucket residue