# Automatic Temporary Branches Clean-up

<figure><img src="https://3502151236-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-naNCUtT6Gw1tfDjRR%2Fuploads%2FPVCZ8mIEvn2TYOfxDjGb%2Fimage.png?alt=media&#x26;token=b1fd1637-63f4-4f25-95ec-5524870d6ab5" alt=""><figcaption></figcaption></figure>

Using the dashboard it is possible to configure your account to automatically delete all reports which come from a particular branch after it has not been scanned for a given period of time.

You can enable/ disable this feature using the "Automatic temporary branches cleanup" toggle button.

You can adjust the behaviour of the cleanup procedure using the following variables.

## Protected Branches Regex

If a project branch is being considered for deletion and the branch name matches this regex \
it will not be deleted.

## Temporary Branches Regex

If a project branch is being considered for deletion and the branch name matches this regex it will be deleted if the branch name does not also match the protected branch regex.

## Temporary Branches Lifetime In Days

If the last report of a project branch was made N or more days ago it will be considered for deletion, where N is the temporary branches lifetime in days.&#x20;
