Start FreeLog in
SonarQube Cloud | Digging deeper | Housekeeping

Housekeeping

On this page

In order to allow tracking of the evolution of a project through time, SonarQube Cloud keeps data on past analyses. However, data is progressively deleted as it gets older. SonarQube Cloud’s data retention policy is outlined below. 

Data retention policy

After each analysis the following is removed:

  • The source code of the previous analysis.
  • Measures at the directory and file levels.
  • History at the package/directory level.

PR data is retained for four weeks after analysis. Additionally, for each project, snapshots of analyses (main branch, non-main branch, and pull request) are retained or removed according to the following rules:

  • All snapshots are retained for one day.
  • After one day, only one snapshot per day is retained.
  • After one week, only one snapshot per week is retained.
  • After 4 weeks, only one snapshot for every 4 weeks is retained.

In all the above cases, in addition to the single snapshot retained at each step, any snapshots marked by an event are also retained. See Activity History for information on events.

Continuing on:

  • After 2 years, only snapshots with version events are retained. Snapshots without events or with only non-version events are deleted.
  • After 5 years all snapshots are deleted, including snapshots marked by version events.

Separately:

  • All closed issues more than 30 days old are deleted.
  • Projects in organizations on a free plan that have not been analyzed for one year are automatically deleted. This also applies to projects that were created one year previously but were never analyzed. Users receive notifications of this event on the SonarQube Cloud project interface four weeks before the deletion will take place.

These settings cannot be customized.


Was this page helpful?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License