azd app clean

Remove build output and cache directories for the services defined in `azure.yaml`.

Usage

Terminal window
azd app clean [flags]

Flags

FlagShortTypeDefaultDescription
--service-sstringArray-Limit to specific services (can be specified multiple times)
--deps-boolfalseAlso remove dependency directories (`node_modules`, `.venv`)
--older-than-string0sOnly remove artifacts older than this duration (for example, `24h`)
--dry-run-boolfalseList what would be removed and the reclaimable size without deleting

Examples

Terminal window
azd app clean [flags]
Terminal window
azd app clean --dry-run
Terminal window
azd app clean
Terminal window
azd app clean --deps
Terminal window
azd app clean --older-than 24h
Terminal window
azd app clean --service api

Detailed Documentation

For complete documentation including flows, diagrams, and advanced usage, see the full command specification.

View full clean specification →