# \#housekeeping

**URL:** https://community.sonarsource.com/tag/housekeeping/132.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [Setup branchesToKeepWhenInactive through sonar-project.properties](https://community.sonarsource.com/t/setup-branchestokeepwheninactive-through-sonar-project-properties/141358)

<div class="topic-metadata">

**Author:** [@haase](https://community.sonarsource.com/u/haase)\
**Replies:** 2\
**Last updated:** [August 14, 2025, 1:04pm UTC](https://community.sonarsource.com/t/setup-branchestokeepwheninactive-through-sonar-project-properties/141358 "2025-08-14T13:04:42Z")

</div>

Hi, i have troubles to setup housekeeping project settings in an sonarqube instance and i hope someone has an idea where i do something wrong. I would like to setup the housekeeping setting “Branches to keep when inact…

---

## [Is it possible to control housekeeping params via \<sonar\_home\>/conf/sonar.properties file?](https://community.sonarsource.com/t/is-it-possible-to-control-housekeeping-params-via-sonar-home-conf-sonar-properties-file/135880)

<div class="topic-metadata">

**Author:** [@monax](https://community.sonarsource.com/u/monax)\
**Replies:** 4\
**Last updated:** [February 27, 2025, 3:18pm UTC](https://community.sonarsource.com/t/is-it-possible-to-control-housekeeping-params-via-sonar-home-conf-sonar-properties-file/135880 "2025-02-27T15:18:16Z")

</div>

Must-share information (formatted with Markdown): which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension): Community EditionVersion 9.9.1 (build 69595) how is Sona…

---

## [Housekeeping not deleting old branches in SonarQube 10.6](https://community.sonarsource.com/t/housekeeping-not-deleting-old-branches-in-sonarqube-10-6/134143)

<div class="topic-metadata">

**Author:** [@mohamad\_dhaini](https://community.sonarsource.com/u/mohamad_dhaini)\
**Replies:** 3\
**Last updated:** [January 30, 2025, 4:14pm UTC](https://community.sonarsource.com/t/housekeeping-not-deleting-old-branches-in-sonarqube-10-6/134143 "2025-01-30T16:14:06Z")

</div>

Hello, We are experiencing an issue with the housekeeping feature in our SonarQube instance (version 10.6). Despite configuring the housekeeping settings to delete old branches as per the retention policy, the branches …

---

## [Number of days before purging inactive branches and pull requests not work](https://community.sonarsource.com/t/number-of-days-before-purging-inactive-branches-and-pull-requests-not-work/128928)

<div class="topic-metadata">

**Author:** [@andrea12a](https://community.sonarsource.com/u/andrea12a)\
**Replies:** 1\
**Last updated:** [October 24, 2024, 10:35am UTC](https://community.sonarsource.com/t/number-of-days-before-purging-inactive-branches-and-pull-requests-not-work/128928 "2024-10-24T10:35:58Z")

</div>

Community Edition Version 9.9.1 (build 69595) configure " Number of days before purging inactive branches and pull requests" is 1 on housekeeping create a project with some branch, last analysis date include 8 months …

---

## [Cleaning old branchs](https://community.sonarsource.com/t/cleaning-old-branchs/124479)

<div class="topic-metadata">

**Author:** [@Luiz\_Ihara](https://community.sonarsource.com/u/Luiz_Ihara)\
**Replies:** 1\
**Last updated:** [September 6, 2024, 6:58am UTC](https://community.sonarsource.com/t/cleaning-old-branchs/124479 "2024-09-06T06:58:24Z")

</div>

Hello, I am using SonarQube 9.9 LTS. Looking to clean old projects that are no longer being scanned, we noticed that there are branches that have not been deleted. Would these old branches, such as PR and others, only …

---

## [Anormally large PostgreSQL Database size](https://community.sonarsource.com/t/anormally-large-postgresql-database-size/74268)

<div class="topic-metadata">

**Author:** [@idles\_23](https://community.sonarsource.com/u/idles_23)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 1:01pm UTC](https://community.sonarsource.com/t/anormally-large-postgresql-database-size/74268 "2022-10-11T13:01:39Z")

</div>

Hi everyone, We have recently known that our Sonarqube LTS database, placed in an AWS RDS instance and with PostgreSQL 12 core, has a size of nearly 190 Gb: If we type in Pgadmin data query: SELECT pg\_size\_pretty(pg\_d…

---

## [HouseKeeping of inactive pull requests not working](https://community.sonarsource.com/t/housekeeping-of-inactive-pull-requests-not-working/71093)

<div class="topic-metadata">

**Author:** [@fransastre](https://community.sonarsource.com/u/fransastre)\
**Replies:** 1\
**Last updated:** [September 7, 2022, 5:16pm UTC](https://community.sonarsource.com/t/housekeeping-of-inactive-pull-requests-not-working/71093 "2022-09-07T17:16:03Z")

</div>

Hello, We are using SonarQube 9.4 community in a dedicated server, also using ‘Community Branch Plugin’ v1.11.0 to add pull request information. Recently we realize that we are storing pull requests information since we…

---

## [Check housekeeping execution?](https://community.sonarsource.com/t/check-housekeeping-execution/35164)

<div class="topic-metadata">

**Author:** [@sgummb](https://community.sonarsource.com/u/sgummb)\
**Replies:** 6\
**Last updated:** [December 3, 2020, 2:36pm UTC](https://community.sonarsource.com/t/check-housekeeping-execution/35164 "2020-12-03T14:36:03Z")

</div>

We use Sonarqube 8.4.1 Enterprise. Is it possible to check housekeeping execution? Indeed, there is no filter in Administration / Projects / Background Tasks… We have a lot of old analyzed branches on projects (that d…

---

## [No Housekeeping for Pull Requests of main branch](https://community.sonarsource.com/t/no-housekeeping-for-pull-requests-of-main-branch/33019)

<div class="topic-metadata">

**Author:** [@s-kip](https://community.sonarsource.com/u/s-kip)\
**Replies:** 8\
**Last updated:** [October 23, 2020, 6:18pm UTC](https://community.sonarsource.com/t/no-housekeeping-for-pull-requests-of-main-branch/33019 "2020-10-23T18:18:57Z")

</div>

Hi there, regarding to our previous problem with the housekeeping of pull requests and shorted-lived branch, we are now facing a new problem. The settings for deleting analysis of short-lived branches and pull requests…

---

## [Housekeeping - What closed issues will be deleted?](https://community.sonarsource.com/t/housekeeping-what-closed-issues-will-be-deleted/31798)

<div class="topic-metadata">

**Author:** [@CPetter](https://community.sonarsource.com/u/CPetter)\
**Replies:** 2\
**Last updated:** [September 29, 2020, 7:07am UTC](https://community.sonarsource.com/t/housekeeping-what-closed-issues-will-be-deleted/31798 "2020-09-29T07:07:30Z")

</div>

Hello, I got a question on the definition of closed issues in relation to the documentation on Housekeeping --\> “All closed issues more than 30 days old are deleted”. Will all issues with “Status”: “Closed” be removed …

---

## [Configuring Housekeeping on Boot](https://community.sonarsource.com/t/configuring-housekeeping-on-boot/25612)

<div class="topic-metadata">

**Author:** [@tjsod2002](https://community.sonarsource.com/u/tjsod2002)\
**Replies:** 3\
**Last updated:** [June 1, 2020, 10:27pm UTC](https://community.sonarsource.com/t/configuring-housekeeping-on-boot/25612 "2020-06-01T22:27:47Z")

</div>

Hello, Using the latest and greatest in SonarQube 8.3.1, booting and configuring on a Centos EC2 in AWS. Is there a way to automate changing the housekeeping defaults without using the Administration tab in the UI? From…

---

## [Housekeeping activities for SonarQube 7.2.1 Community edition](https://community.sonarsource.com/t/housekeeping-activities-for-sonarqube-7-2-1-community-edition/10480)

<div class="topic-metadata">

**Author:** [@Kaushik\_Ramakrishna](https://community.sonarsource.com/u/Kaushik_Ramakrishna)\
**Replies:** 5\
**Last updated:** [June 11, 2019, 6:37am UTC](https://community.sonarsource.com/t/housekeeping-activities-for-sonarqube-7-2-1-community-edition/10480 "2019-06-11T06:37:43Z")

</div>

Please assist us to list the best practices to be followed using SonarQube 7.2.1 Community edition to check and maintain sonarqube analysis as Green as possible . We are having too many open files issues while analyzing …

---

## [Sonarqube Database cleaner settings not working as expected](https://community.sonarsource.com/t/sonarqube-database-cleaner-settings-not-working-as-expected/7478)

<div class="topic-metadata">

**Author:** [@SuganyaVinayagam](https://community.sonarsource.com/u/SuganyaVinayagam)\
**Replies:** 0\
**Last updated:** [March 5, 2019, 3:08am UTC](https://community.sonarsource.com/t/sonarqube-database-cleaner-settings-not-working-as-expected/7478 "2019-03-05T03:08:20Z")

</div>

Hi, The default settings: Keep only one analysis a day after: 24 hours is expected to delete all the analysis for a project other than a recent one. However I could still find the different versions of analysis in the …

---

## [DB Housekeeping](https://community.sonarsource.com/t/db-housekeeping/2907)

<div class="topic-metadata">

**Author:** [@M8t88](https://community.sonarsource.com/u/M8t88)\
**Replies:** 2\
**Last updated:** [September 27, 2018, 7:30pm UTC](https://community.sonarsource.com/t/db-housekeeping/2907 "2018-09-27T19:30:52Z")

</div>

Hi all, We are having about 1050 projects in our SonarQube 6 community edition instance and a DB size of 33 GB. Previously we had around 2000+ projects. Unfortunately we did not check the DB size before deleting all tho…

---

## [File-level historical data , and global/project database cleanup settings](https://community.sonarsource.com/t/file-level-historical-data-and-global-project-database-cleanup-settings/2036)

<div class="topic-metadata">

**Author:** [@jdkern](https://community.sonarsource.com/u/jdkern)\
**Replies:** 2\
**Last updated:** [August 28, 2018, 10:53am UTC](https://community.sonarsource.com/t/file-level-historical-data-and-global-project-database-cleanup-settings/2036 "2018-08-28T10:53:18Z")

</div>

I have a question about SonarQube database settings. It seems that by default the below option is set to true. As a result of this, it seems that we cannot directly diff metrics at the file level from two subsequent an…

---

## [Deleting project from sonarqube](https://community.sonarsource.com/t/deleting-project-from-sonarqube/1597)

<div class="topic-metadata">

**Author:** [@vicky](https://community.sonarsource.com/u/vicky)\
**Replies:** 1\
**Last updated:** [August 7, 2018, 7:58am UTC](https://community.sonarsource.com/t/deleting-project-from-sonarqube/1597 "2018-08-07T07:58:06Z")

</div>

Hi, Is it possible to delete only specific project from sonarqube database after certain time because currently as per this documentation (https://docs.sonarqube.org/display/SONAR/Housekeeping) it only allows configura…
