doc/administration/dormant_project_deletion.md
{{< details >}}
{{< /details >}}
{{< history >}}
inactive_projects_deletion. Disabled by default.inactive_projects_deletion removed in GitLab 15.4.{{< /history >}}
Over time, projects in large GitLab instances can become dormant and use unnecessary disk space.
You can configure GitLab to automatically delete dormant projects after a specific period of inactivity. When a project has no activity within this defined period:
For the default setting on GitLab.com, see GitLab.com settings.
Prerequisites:
To configure deletion of dormant projects:
Dormant projects that meet the criteria are scheduled for deletion and a warning email is sent. If the projects remain dormant, they are deleted after the specified duration. These projects are deleted even if the project is archived.
If you use these settings:
50.12.6.If a project is less than 50 MB, the project is not considered dormant.
If a project is more than 50 MB and it is dormant for:
If you use these settings:
0.12.11.Because the size limit has been set to 0 MB, all projects in an instance are covered. If a project is dormant for:
If a project exists that has already been dormant for more than 12 months when you configure these settings:
You can view a project's activities and determine when the project was last active in the following ways:
last_activity_at attribute for the project using the Projects API.created_at attribute of the latest event.