S Technologies's Logo

Color

Green
Teal
Indigo
Blue
Purple
Red
Rose

Mode

Light

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.

CommandWhat it does
stechbd preview rmRemove 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.

bash
stechbd preview rm <name> [--app <app>]
OptionDescription
<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.
bash
# 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