Delete a project variable in Octopus Deploy
Usage:
octopus project variables delete {<name>} [flags]
Aliases:
delete, del, rm, remove
Flags:
-y, --confirm Don't ask for confirmation before deleting the project variable.
--git-ref string The GitRef for the Config-As-Code branch
--id string The id of the specific variable value to delete
-n, --name string The name of the variable
-p, --project string The project
Global Flags:
-h, --help Show help for a command
--no-prompt Disable prompting in interactive mode
-f, --output-format string Specify the output format for a command ("json", "table", or "basic") (default "table")
-s, --space string Specify the space for operations
Examples
Octopus Samples instance
Many of the examples we use, reference the samples instance of Octopus Deploy. If you’d like to explore the samples instance, you can log in as a guest.
$ octopus project variable delete --name "variable Name" --project "Deploy Site"
$ octopus project variable delete --name "variable Name" --id 26a58596-4cd9-e072-7215-7e15cb796dd2 --project "Deploy Site" --confirm
$ octopus project variable delete --name "variable Name" --project "Deploy Site" --git-ref "refs/heads/main"
Learn more
Help us continuously improve
Please let us know if you have any feedback about this page.
Page updated on Wednesday, November 20, 2024