To permanently remove a directory, secret, or version, you can run the rm command:

secrethub rm [options] <namespace>/<repo>[/<path>]

The rm command permanently removes a resource, so proceed with caution here. Note that this command cannot be used to remove repositories, you can use the repo rm command for that.


<namespace>/<repo>[/<path>] (string)
The path to the directory, secret or version to remove.


-r, --recursive (boolean)
Remove directories and their contents recursively. Must be used for removing directories.