Skip to main content

What is tfy delete?

tfy delete is a CLI command that lets you delete existing resources, such as applications and workspaces, by pointing to the same manifest file you used to create them with tfy apply. Instead of navigating the UI or remembering resource identifiers, you can simply pass the manifest and tfy delete will identify and remove the corresponding resource from the platform.
Note: If you haven’t set up the CLI yet, see the CLI setup guide.

Basic Usage

To delete a resource described in a manifest file:
You can also pass multiple files at once:

Deleting an Application

If you previously deployed an application using a manifest like the one below:
You can delete it by running:

Deleting a Workspace

Similarly, if you have a workspace manifest:
Delete it with:

Deleting Other Resources

tfy delete works with any resource type that supports manifest-based management. For example, a provider account manifest used with tfy apply:
Can be deleted with: