ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified file management Safety 5/5

file-cleaner

A specialized skill for safely cleaning up temporary files and directories. Use this when you need to remove temp files, clear caches, or delete logs to free up space or maintain hygiene. Restricted to 'temp/', 'logs/', and 'cache/' directories for safety.

Why use this skill?

Maintain a clean OpenClaw workspace with the file-cleaner skill. Safely automate the deletion of temporary files, logs, and cache while protecting your project data.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/autogame-17/file-cleaner
Or

What This Skill Does

The file-cleaner skill is a robust, security-first utility designed to maintain the health and cleanliness of your OpenClaw workspace. As automated agents perform tasks, they often generate secondary artifacts such as temporary experimental data, debugging logs, and transient cache files. If left unchecked, these files can accumulate, consuming valuable storage space and potentially cluttering the environment. This skill provides a surgical approach to file deletion, acting as a specialized garbage collector that adheres to strict path restrictions to ensure your primary project source code remains untouched.

Installation

To integrate this utility into your OpenClaw environment, use the ClawHub package manager. Run the following command in your terminal:

clawhub install openclaw/skills/skills/autogame-17/file-cleaner

Ensure that you have sufficient permissions in your workspace directory to execute node-based scripts before installation.

Use Cases

The file-cleaner is ideal for:

  1. Automated Hygiene: Running a cleanup routine at the end of a long-running data analysis loop to clear out temporary experiment folders.
  2. Log Rotation: Removing bloated or outdated log files that are no longer needed for debugging, helping you manage disk quotas.
  3. Cache Invalidation: Forcing an agent to clear cached resources to ensure that the next execution pulls fresh data or state.

Example Prompts

  • "OpenClaw, please wipe the temp/experiment-alpha directory to free up space for our new model run."
  • "I'm done debugging, can you remove all logs inside the logs/ folder to keep the workspace clean?"
  • "Clear out the cache/v1 directory so we can start the next indexing process with a fresh environment."

Tips & Limitations

This skill features a mandatory safety layer. It is hard-coded to reject any command attempting to access directories outside of 'temp/', 'logs/', or 'cache/'. This prevents accidental deletion of project files. Always verify the path structure before sending a request. If the skill returns an error, it is likely because the target path falls outside the approved safety whitelist, protecting your sensitive project root and internal skills folders from deletion.

Metadata

Stars1696
Views1
Updated2026-03-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-autogame-17-file-cleaner": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#cleanup#file-maintenance#storage#workspace-health#automation
Safety Score: 5/5

Flags: file-read, file-write