Scratch orgs are disposable. By default, they expire after 7 days. Scratch org’s maximum lifespan can be extended up to 30 days by adjusting the configuration settings. After that period, all work is permanently deleted.