/appfront:cleanup [path/to/project]from appfront
Clean up a deployed SAP appFront application. Undeploys from Cloud Foundry (optionally deleting service instances and keys), and removes the local output folder if applicable (appfront-migrated/ for migrated apps; the project folder itself for apps created from scratch). Use when the user asks to clean up, remove, or tear down an appFront app.
Ships in appfront. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
appfront-migrated/ folder (migration output) or the scaffolded project folder (create output). Never touch the original input project.Determine what kind of appFront project this is:
# Check for migration output folder
ls -d appfront-migrated/ 2>/dev/null && echo "MIGRATED" || echo "NOT_MIGRATED"
# Check for mta.yaml to find the MTA ID
find . -maxdepth 3 -name "mta.yaml" 2>/dev/null
Project type determination:
| Condition | Project type | Local folder to delete |
|---|---|---|
appfront-migrated/ exists alongside original project | Migration output | appfront-migrated/ only |
| Neither applies | Unknown — ask user | Ask user which folder to remove |
Extract the MTA ID from the relevant mta.yaml:
grep "^ID:" appfront-migrated/mta.yaml 2>/dev/null || grep "^ID:" mta.yaml 2>/dev/null
Ask the user:
Should I undeploy the appFront application
<mta-id>from Cloud Foundry?
⛔ STOP if the user says no. Do not proceed to local file deletion without undeploying first (unless the user explicitly confirms the app was never deployed).
Ask the user:
Should service instances and service keys also be deleted? ⚠️ This will permanently remove all provisioned services (e.g.
app-front,xsuaa). This cannot be undone.
No → undeploy only:
cf undeploy <mta-id>
Yes → undeploy and delete services:
cf undeploy <mta-id> --delete-services --delete-service-keys
Wait for the undeploy to complete successfully before proceeding.
Only proceed after Phase 1 completes (or user confirms app was never deployed).
Ask the user:
Should I also delete the local
<output-folder>directory?
If yes:
rm -rf <output-folder>
Where <output-folder> is:
appfront-migrated/ — for migration outputPersist the summary before presenting it to the user:
mkdir -p .claude/appfront
date +"%Y%m%d-%H%M%S"
Write the full summary to .claude/appfront/<timestamp>-cleanup.md.
Report what was done:
| Action | Status |
|---|---|
CF undeploy <mta-id> | Done / Skipped |
| Service instances deleted | Yes / No / Skipped |
| Service keys deleted | Yes / No / Skipped |
Local folder <output-folder> removed | Done / Skipped |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sap-samples/html5-applications-migration-skills-for-sap-btp --plugin appfront3 skills in this plugin
/migrateMigrate SAP BTP HTML5 applications to the appFront (Application Frontend) deployment model. Handles migration from SAP Neo HTML5 apps, html5-apps-repo with managed approuter, and standalone approuter (approuter.nodejs with localDir routes). Supports Cloud Foundry and Kyma runtimes with XSUAA or IAS authentication. Produces updated mta.yaml, xs-app.json, and xs-security.json files. Use when the user asks to migrate, convert, or move an HTML5 app to appFront./validateValidate SAP appFront (Application Frontend) application configuration for correctness and deployment readiness. Checks mta.yaml structure, xs-app.json routing, xs-security.json scopes, service bindings, and CDM configuration. Use when the user asks to validate, check, or verify an appFront application.