A Node CLI that removes asset.* files and directories in cdk.out that no *.assets.json references, deletes the local Docker images built for them in both ECR and local tag formats, and optionally clears CDK's temporary directories, with dry runs and a keep-recent window.
Trade-offs
- Only unreferenced
asset.*entries are candidates: manifests, templates and every other CDK metadata file are always kept, so cleanup can't break the next deploy. - Temporary-directory cleanup deletes whole directories and has only the time window as protection, which is why it is opt-in behind
-t. - Docker images are removed only for assets being deleted, matching both the ECR and the local
cdkasset-tag formats, so images still in use stay.
Q&A3
Between
cdk synth and caching cdk.out, so the cached directory holds only assets the current build references.With any drop-in replacement:
CDK_DOCKER selects Finch or Podman, and DOCKER_HOST may need to point at its socket.-d lists what would be deleted without deleting it, and -k protects anything modified within the last N hours, for example to keep a quick rollback.Links
Built by
Reviews
Loading reviews
More in AWS
See all 7 →
CostGoblinDesktop app for cloud cost analysis on local billing data and DuckDB- lazy-ecsInteractive terminal navigator for AWS ECS clusters, services and tasks
MockNest ServerlessWireMock-compatible API mocking in an AWS account
Cloud BenchSame benchmarks across clouds, with cost per point
HiraethLocal AWS emulator for fast integration testing- StaveOffline AWS configuration verifier that needs no credentials
More in Infra as code
See all 12 →- FinFocusPrices Pulumi previews before deploy, with budgets enforced in CI
- Proxmox-GitOpsGitOps automation for Linux containers on Proxmox VE
TerraducktelSelf-hosted Terraform and Helm orchestration, no SaaS
TerraTidySingle-binary quality platform for Terraform and Terragrunt- ansible-unifi-inventoryAnsible inventory plugin that discovers hosts from a UniFi controller
EndstateReinstall apps and restore settings on a fresh Windows PC
More in CLI tools
See all 74 →- ZeroboxDeny-by-default process sandbox with per-host secret injection
blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
jc-rsjc rewritten as one static binary that turns command output into JSON- pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
quiverDump, load, copy and stream MySQL, MariaDB and TiDB from one consistent snapshot
haxMinimalist terminal coding agent written in C