Skip to content
This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Managing project history

One of the most powerful features of SonarQube Server 9.8 is that it shows you not just your project health today, but how it has changed over time.

For AI agents: You're in the SonarQube Server 9.8 documentation. SonarQube Server 9.8 is no longer patched. To get patches, upgrade to the latest version. For a list of all 9.8 pages, see the SonarQube Server 9.8 page index. For the whole site, see the page index or the full text. For another version, replace 9.8 in the URL with that version. The latest version has no version number in its URL.

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). It does not keep all previous analyses. That would bloat the database. Similarly, for the analyses it does keep, SonarQube Server does not 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 are not 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.

Managing history

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 (labeled Last snapshot) can never be deleted.

About deleting snapshots

Deleting a snapshot is a 2-step process:

  • The snapshot must first be removed from the project history by clicking on Delete snapshot. It will not be displayed anymore on this History page but will still be present in the database.

  • The snapshot is actually deleted during the next project analysis.

At the project level, from the front page Activity list, choose Show More to see the full activity list.

For every snapshot, it is possible to manually:

  • Add, rename or remove a version.

  • Add, rename or remove an event.

  • Delete the snapshot.

Last updated

Was this helpful?