Clear data from Bitbucket Server instance
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The purpose of this article is to clarify how to clear data from the Bitbucket instance in order to reconfigure the instance from scratch.
Environment
Bitbucket Server/DC
Solution
⚠️ Be aware this procedure will wipe out all the current data in the Bitbucket instance.
Log into the instance with the Administrator account, then go to
Support > Atlassian Support Tools
, click theSystem Information
tab and determine:Which directory is being used as
Home Directory;
The database that the instance is connected to.
Shutdown the instance
Delete the contents of the
Home Directory
(or move it elsewhere)Erase all the content from the current Bitbucket database instance by dropping (drop command) the database being used by that instance (you can create a database dump before), then recreate it.
After doing these steps above, the next time you try to start that instance you will go through its Setup Wizard again.
Was this helpful?