This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Configure SourceGraph to not delete a repository when removed from a Codehost #61852
Open
Description
Question description
Is it possible to configure the server to not delete a repository when it is removed from a Codehost? Maybe it would be better to then categorize the repository as Orphaned. Auto deletion by syncing is counter intuitive, especially when repositories are explicitly defined in the Codehost mirrors.
Is your question related to a problem? If so, please describe or link to another issue.
Possibly related https://github.com/sourcegraph/sourcegraph/issues/914
Additional context
There is this FAQ on purging data from deleted repositories: https://sourcegraph.com/docs/admin/how-to/remove-repo#manually-purge-deleted-repository-data-from-disk. There could alternatively just be a button per Codehost configuration to delete all orphaned repositories.