Deleting a fly target in Concourse CLI

Published
Updated

Concourse CICD’s fly command-line utility is an incredibly powerful and complex tool. It is not defined within Concourse’s fly CLI tool documentation on how to delete a target connection.

To delete a target, run the following and replace TARGET_ALIAS with the fly CLI target name you wish to delete:

fly -t TARGET_ALIAS delete-target

Note: in Concourse versions prior to 2019 (versions 3.14.x and older) this command will not work. You will need to delete your ~/.flyrc file and it will remove all of your targets and reset your configuration.

If you don’t know the name of your alias, you can run the following to list all available Concourse targets:

fly targets