Archive a repository

A Data Center license is required to use this feature. Get an evaluation license to try it out, or purchase a license now.

If you’d rather not delete a repository, you can archive it instead. This helps to declutter the list of repositories and ensure more accurate code search results.

Repositories can be archived:

Archiving a repository makes it read-only and excludes it from searches and comparison. It also means that you can't:

  • create pull requests
  • create branches
  • add comments
  • change repository details
  • move the repository

Here’s some more things to note about archiving repositories:

  • You can still fork and clone an archived repository.
  • You can’t archive a repository with open pull requests.
  • Repository admins can unarchive archived repositories.
  • Archiving a repository doesn’t reduce the disk space.
  • You can search for code in archived repositories. Learn more about how to perform code search
  • You’ll still be able to see the repositories you’ve archived.

Repositories list that includes archived repositories

Archive or unarchive a single repository from Repository settings

Who can use this procedure?

Repository admins

Available in Bitbucket Data Center 8.0 onwards

To archive a single repository:

  1. Navigate to Repository settings > Repository details.
  2. Select Manage repository > Archive.
  3. In the confirmation modal, select Archive.

To unarchive, select Manage repository > Unarchive

Archive or unarchive repositories in bulk from the Administration area

Who can use this procedure?

System and global admins

Available in Bitbucket Data Center 8.0 onwards

You can archive a single repository or multiple repositories at once.

To archive multiple repositories:

  1. Navigate to Administration > Git > Repositories.
  2. Select the checkboxes next to the repositories you want to archive.
  3. Select Archive.
  4. In the confirmation modal, select Archive.

To unarchive, select More actions ••• > Unarchive next to the repository you want to unarchive.

Last modified on Feb 26, 2023

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.