Skip to content

candidates for repository deletion‎ - #2780

Closed
u07447201-cloud wants to merge 18 commits into
RaspberryPiFoundation:mainfrom
u07447201-cloud:main
Closed

u07447201-cloud wants to merge 18 commits into
RaspberryPiFoundation:mainfrom
u07447201-cloud:main

Conversation

@u07447201-cloud

Copy link
Copy Markdown

Candidates for repository deletion are typically abandoned, redundant, or non-compliant codebases that add unnecessary maintenance overhead and security risks to an organization's version control system. Before permanently deleting any repository, it is standard practice to archive it first and notify relevant stakeholders.

Common Criteria for Deletion

• Zero or minimal activity: Repositories with no commits, pull requests, or issues over an extended period (typically 12 to 24 months) are prime candidates.
• Empty or boilerplate code: Projects containing only an initial README, a license file, or unedited framework templates from an abandoned experiment.
• Duplicate or legacy forks: Outdated forks of upstream projects that are no longer synced, or repositories whose code has already been merged into a monorepo.
• Deprecated projects and PoCs: Completed hackathons, temporary proof-of-concept (PoC) apps, or retired services that no longer have active users or infrastructure.
• Policy or compliance violations: Repositories containing hardcoded secrets, unapproved third-party dependencies with critical vulnerabilities, or orphaned repos with no assigned owner.

Recommended Cleanup Process

  1. Audit and flag: Use platform APIs or scripts to list repositories sorted by last_pushed_at, contributor count, and open pull requests.
  2. Check dependencies: Search across your organization's active codebases and CI/CD pipelines to ensure nothing imports or references the candidate repo.
  3. Archive first: Change the repository status to archived (read-only) for 30 to 90 days as a "scream test" to see if any team or automated process breaks.
  4. Back up and delete: Export a final mirror clone or bundle for cold storage if required by compliance, then permanently delete the repository.
    If you'd like help automating this audit, let me know:
    • Which platform you are using (GitHub, GitLab, Bitbucket, Azure DevOps)
    • Whether you want a CLI command or script to find inactive repos
    I can put together a ready-to-run query or script to list your deletion candidates.

@u07447201-cloud
u07447201-cloud requested a review from a team as a code owner November 19, 2026 03:09
@u07447201-cloud
u07447201-cloud requested review from lizschwab and removed request for a team November 19, 2026 03:09

@u07447201-cloud u07447201-cloud left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you pasted a partial prompt or UI label ("candidates for repository deletion‎ Finish your review") without the rest of your question or context.
To give you the exact help you need, let me know what you're working on:
• Evaluating software or code repositories: Are you looking for criteria to decide which Git repositories (e.g., on GitHub or GitLab) are safe to archive or delete?
• Reviewing a list of repositories: Do you have a list of repositories with metrics (like last commit date, stars, or dependencies) that you want me to analyze and categorize for you?
• Drafting a review summary or sign-off: Do you need a template or message to finalize an audit and notify your team before deleting unused repositories?
• Managing academic submissions: Are you an administrator reviewing paper deletion requests in a system like Turnitin? [1] (https://helpcenter.turnitin.com/hc/en-us/articles/27811947461133-How-to-permanently-delete-a-paper-stored-in-the-Turnitin-repository)
Please share a bit more detail—or paste the list or text you're reviewing—and I'll help you finish your review!

@zspriggs zspriggs closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants