Preview
Remove previews built with deploy:preview, which nothing else removes.
stechbd preview manages previews that were built with deploy:preview. A preview created by a git push is removed when its branch is deleted. A preview created by deploy:preview has no branch whose deletion triggers removal, so it keeps running until it is removed here. Every command accepts --app <app> and --json.
| Command | What it does |
|---|---|
stechbd preview rm | Remove a preview’s containers and generated hostname |
stechbd preview rm
Removes a preview: its containers, its generated hostname, and its route. Use it once a preview is no longer needed, so it stops using memory on the machine. A hostname you added with --domain is not removed. It stays on the application and still points at the preview’s name, so deploying a preview with that name again brings it back. Use stechbd domain rm to remove that hostname for good.
stechbd preview rm <name> [--app <app>]| Option | Description |
|---|---|
<name> | The preview to remove, as it was named with deploy:preview --name. Required |
--app <app> | The application that owns the preview. An id, or the slug in the linked project. |
# Remove a preview by its name
stechbd preview rm review
# Remove the hostname too, once it is no longer wanted
stechbd domain rm review.example.com