| name | delete-render-profile |
| description | Delete a saved render profile by name. Use when the user says "delete the <name> render profile", "remove my <name> preset", or "clean up old render profiles". |
| disable-model-invocation | false |
| allowed-tools | Bash(test *), Bash(jq *), Bash(mv *), Bash(cat *), Read, Write |
Delete Render Profile
Remove a profile from render-profiles.json. Confirms before deleting.
Procedure
DATA_DIR="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/video-editing"
PROFILES_FILE="$DATA_DIR/render-profiles.json"
test -f "$PROFILES_FILE" || { echo "No profiles file."; exit 0; }
- If a name wasn't given, list profiles (use the same
jq from list-render-profiles) and ask which to delete.
- Show the full profile JSON for the chosen name and ask for confirmation.
- Delete atomically:
jq --arg n "$NAME" 'del(.profiles[$n])' "$PROFILES_FILE" > "$PROFILES_FILE.tmp" && mv "$PROFILES_FILE.tmp" "$PROFILES_FILE"
- Confirm deletion. If
.profiles is now empty, leave the file in place (don't delete the JSON itself).