Deleting multiple releases

anderspedersen's Avatar

anderspedersen

30 Nov, 2017 09:14 AM

Hi,

When testing the configuration of deployment of our project, we have created quite a few releases.
Now before demo this to our team I would like to delete all old release (some deployed, some not).

Is there a way to batch delete multiple releases?

Tank you for at great product, hopefully our team will embrace Octopus, so we can gain more control of our Deployment Pipeline.

  1. Support Staff 1 Posted by Kenneth Bates on 01 Dec, 2017 01:28 AM

    Kenneth Bates's Avatar

    Hi Anders,

    Thanks for getting in touch! And thank you for the very kind words - I'm happy to hear you're having a good experience with Octopus so far!

    There is a way to delete a batch of releases in one go. I'd recommend using our Octo.exe command line tool, which can be downloaded here if you haven't already.
    https://octopus.com/downloads

    You can use the delete-releases command in Octo.exe, where you'd specify your project and range of versions to delete. As an example, you could use something like this:
    octo delete-releases --project=ProjectName --minversion="1.0.0" --maxversion="2.0.0" --server=http://YourOctopusServer.com --apikey=xxx

    This example would delete all releases that fall within versions 1.0.0 and 2.0.0. You can reference our doc page on deleting releases via Octo.exe as well. :)
    https://octopus.com/docs/api-and-integration/octo.exe-command-line/...

    I hope this helps! Don't hesitate to reach out if you have any further questions going forward. :)

    Kind regards,

    Kenny

  2. 2 Posted by anderspedersen on 01 Dec, 2017 08:40 AM

    anderspedersen's Avatar

    Great that did the trick, was looking in the UI instead of octopack tool.

    Thank you.

    Kind regards

    Anders Lind Pedersen
    Lead Systems Developer
    IS Sales Application Development
    www.grundfos.com<http://www.grundfos.com/>

    [X]

  3. Support Staff 3 Posted by Kenneth Bates on 04 Dec, 2017 01:19 AM

    Kenneth Bates's Avatar

    Hi Anders,

    You're very welcome! I'm glad it did the trick for you. Don't hesitate to reach out if you have any further questions going forward. :)

    Kind regards,

    Kenny

  4. anderspedersen closed this discussion on 10 Apr, 2018 03:04 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac