Github
GitHub is a code hosting and version control platform for developers to collaborate on software projects.
Website
Industry
Website
Share this article:

How to configure automatic deletion of your GitHub codespaces

Here is how to configure automatic deletion of your github codespaces

  1. First click on your profile picture in the top-right corner of the header
  2. Next click on "Settings" in the dropdown menu
  3. Click on "Codespaces" in the left sidebar under the "Code, planning, and automation" section
  4. Scroll down to the "Default retention period" section
  5. Then enter the number of days for which you want your codespaces to be retained, by default, after they have been stopped
  6. Finally click on "Save" button to save the retention period changes

Create your own interactive guide with Guideflow

Why should you configure automatic deletion of your GitHub codespaces

GitHub is the world's leading platform for collaborative software development and version control.

Configuring automatic deletion of your GitHub codespaces ensures that your projects remain clutter-free and resource-efficient. This feature allows users to automatically remove codespaces that are no longer in use, optimizing workflow and minimizing unnecessary storage costs.

By automating the cleanup process, developers can focus more on coding and less on maintenance, fostering an environment of productivity and seamless project management.

Last update
April 10, 2026
Cursor MariaA cursor points to a button labeled "James."

Create your first demo in less than 30 seconds.