clean

Delete outdated or orphaned snapshots from data archives.

2|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/jameswong2011/InvestmentVault --skill clean-jameswong2011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean
Source: https://github.com/jameswong2011/InvestmentVault/tree/main/.claude/skills/clean
Command: npx skills add https://github.com/jameswong2011/InvestmentVault --skill clean-jameswong2011

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users efficiently remove old or unnecessary snapshots, reducing storage clutter and keeping their data archives manageable.

Core Features & Use Cases

  • Snapshot Cleanup: Delete snapshots older than a specified number of days to conserve storage.
  • Orphan Snapshot Handling: Identify and optionally delete orphan snapshots when source files are missing.
  • Use Case: A user wants to free up space by removing snapshots older than 180 days, including orphans, while safeguarding recent closure snapshots from accidental deletion.

Quick Start

Ask the AI to clean snapshots older than 180 days from the archive directory.

Frequently Asked Questions about clean

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delete outdated snapshots from a data archive to free up storage?

Delete outdated snapshots by evaluating their ages against a specified retention threshold, such as 180 days. This Skill automates the cleanup of aged snapshots from your archive directory to conserve storage space and reduce data clutter.

What is an orphan snapshot and how can I remove it safely?

An orphan snapshot is a snapshot whose original source file is missing. This Skill identifies orphan snapshots during the evaluation process and can optionally delete them while safeguarding recent or critical closure snapshots from accidental removal.

How does snapshot cleanup handle in-progress operations and recent closures?

Snapshot cleanup handles recent closures by checking their closure status and protecting those snapshots from removal. It also detects manual in-progress operations to prevent interfering with active data archive tasks.

Can I clean snapshots older than a specific number of days without deleting critical files?

Yes, you can clean snapshots older than a specified number of days while protecting critical files. The Skill evaluates source file existence and recent closure status to safeguard recent or critical snapshots from removal during the deletion process.

What are the limitations of automated snapshot cleanup in storage management?

Automated snapshot cleanup limitations include potential interference from manual in-progress operations, which can halt deletion. Additionally, the cleanup cannot remove recent closure snapshots due to built-in protection mechanisms for safe data retention.