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 set a default retention period for your GitHub Codespaces

Here is how to set a default retention period for 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 set a default retention period for your GitHub Codespaces

GitHub is a powerful platform designed to streamline collaborative software development through effective version control.

Setting a default retention period for your GitHub Codespaces is a thoughtful feature designed to help manage resources efficiently. By choosing how long your codespaces are retained, you can optimize organization and enhance productivity.

This feature not only helps in maintaining a clutter-free development environment but also in controlling costs associated with storage.

Overall, it supports a more streamlined workflow, making software development even more efficient and organized.

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

Create your first demo in less than 30 seconds.