aatmmr/Remove agentic files
Remove agentic files, for example AGENTS.md, CLAUDE.md or .cursor/, from a checked out repository. The action works on Linux, Windows and macOS.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| agents | Coding agents whose built-in pattern list the action uses. Separate the keys with a comma or a line break. Use "all" to select every known agent. Known keys: agents, aider, amazonq, claude, cline, codex, continue, copilot, cursor, gemini, junie, kiro, opencode, roo, windsurf. The default is empty, so the action removes nothing without a selection. | no | "" |
| patterns | Additional glob patterns, one per line. A line that starts with "#" is a comment. A line that starts with "!" protects its matches. The action does not add a recursion. Write "**/AGENTS.md" for a recursive search. | no | "" |
| config | Path to a plain text file with one glob pattern per line. The action resolves a relative path against GITHUB_WORKSPACE and requires the path to remain inside it. The action fails if the path is set but the file does not exist. | no | "" |
| working-directory | Root of the search. The action resolves a relative path against GITHUB_WORKSPACE and requires the path to remain inside it. | no | . |
| dry-run | Report the matches, but delete nothing. | no | false |
| fail-on-no-match | Fail if a pattern finds no match. | no | false |
| follow-symbolic-links | Follow a symbolic link during the search. | no | false |
| summary | Location of the report. Use "inline" for the step log, "job-summary" for the job summary page, or "none" for no report. | no | inline |
Outputs
| name | description |
|---|---|
| deleted-files | JSON array with every deleted path, relative to the search root. In dry-run mode, this output lists the paths that the action would remove. |
| deleted-count | Number of deleted paths. In dry-run mode, this output is the number of paths that the action would remove. |