# Managing project history

One of the most powerful features of SonarQube Server is that it shows you not just your project health today, but how it has changed over time. It does that by selectively keeping data from previous analyses (see [housekeeping](https://docs.sonarsource.com/sonarqube-server/instance-administration/system-functions/housekeeping "mention")). It doesn’t keep all previous analyses. That would bloat the database. Similarly, for the analyses it does keep, SonarQube Server doesn’t keep all the data. Once a project snapshot moves from being the "last analysis" (i.e., the most recent) to being part of the project’s history, data below the project level is purged to keep from bloating the database.

Typically these aren’t things you need to even think about. SonarQube Server just handles them for you. But occasionally you may need to remove a bad snapshot from a project’s history or change the housekeeping algorithms.

To manage the history of your project, you must be a project administrator.

## Deleting a snapshot <a href="#deleting-snapshot" id="deleting-snapshot"></a>

Occasionally, you may need to manually delete a project snapshot, whether because the wrong quality profile was used, or because there was a problem with analysis, and so on. Note that the most recent snapshot can never be deleted.

To delete a snapshot of your project:

1. Go to the project's Activity page. See [activity-and-history](https://docs.sonarsource.com/sonarqube-server/user-guide/viewing-projects/activity-and-history "mention") for more details.
2. In the left panel, click on the action menu of the snapshot and select **Delete analysis**.

<div align="left"><figure><img src="https://2744305742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VWSqvZ4eaBLWvA6epdv%2Fuploads%2F3iSA8nAxl271oSPG6tQq%2Fproject-activity-delete-snopshot.png?alt=media&#x26;token=4076fc1c-652c-4da2-8d74-58cb957df86c" alt="Delete your SonarQube project’s analysis snapshot."><figcaption></figcaption></figure></div>

{% hint style="warning" %}
The snapshot is actually deleted during the next project analysis.
{% endhint %}

## Editing a snapshot <a href="#editing-snapshot" id="editing-snapshot"></a>

To edit a snapshot of your project:

1. Go to the project's Activity page. The snapshots are listed in the left panel.
2. To add a custom version or an event to a snapshot:
   * Click on the action menu of the snapshot
   * Select **Create Version** or **Create Custom Event**, respectively.

To edit or delete a custom version or event, select the edit or delete icon for the version.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [activity-and-history](https://docs.sonarsource.com/sonarqube-server/user-guide/viewing-projects/activity-and-history "mention")
