# Housekeeping

## Retention Period

By default, CodeScan is set to delete inactive branches and pull requests (PRs) after 30 days, which is standard practice in SDLC for old feature branches. However, you can choose to keep inactive branches that you want to maintain.

### Changing Settings for Deleting Inactive Branches and Pull Requests

To change the settings for deleting inactive branches and PRs, navigate to the project you want to adjust. Go to **Project Settings > General Settings** and search for "**Delete inactive branches and PRs after."** You’ll find the option there, and you can change the settings accordingly. The default is 30 days for all projects.

<figure><img src="https://support.autorabit.com/api/v1/threads/241415000167681104/inlineImages/edbsn8bcef6a19e87338ebe346dd0f1eed1cae2d5e7634a1857f5df7b5476d6ea68d4856636c8b5aaa9abccc4e6028d53d4fb6926be7e390f057f247eb4feaca80a4a17c96b2124ab95f7cf3ca68fc58a61ec?et=1939653d195&#x26;ha=29e72806b58e4f135ce47ac5797b42c983951c44ee6a30baf38e5b4d69d5dcc0&#x26;f=1.png" alt=""><figcaption></figcaption></figure>

Changes to the setting will also be reflected in the Branches and Pull Requests tab.

<figure><img src="/files/YCwJcwQuOiaziK0BeMhd" alt=""><figcaption></figcaption></figure>

**Note**: Changes only take effect after the next analysis.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/codescan/report-and-analysis/housekeeping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
