How can I remove a release from a channel?

You can remove a release in the Vendor Portal by using the archive button (red trash can) on the Releases tab, selecting the release(s) you would like to archive and clicking the Archive Releases button.

Alternatively, you can run the command below.

curl 'https://g.replicated.com/graphql' \
  -H 'authorization: <token>' \
  -H 'content-type: application/json' \
  -H 'accept: */*' \
  --data-raw $'{"operationName":"archiveKotsReleases","variables":{"appId":"<app-id>","sequences":[<sequence-1>, <sequence-2>]},"query":"mutation archiveKotsReleases($appId: ID\u0021, $sequences: [Int]) {\\n  archiveKotsReleases(appId: $appId, sequences: $sequences)\\n}\\n"}' \
  --compressed

You’ll need to use a user token or a service account token and replace <token> in the command with the desired token.

You will also replace <app-id>, <sequence-1> and <sequence-2> with your values.

1 Like

Does this prevent the release from being installed?

Yes, however, the release can be unarchived and promoted to a channel if it is needed later or was archived in error.

1 Like

Gotcha – thank you!

Update: Archiving a release does not remove it from a channel, so it does not prevent it from being pulled by end users. There is currently no way to “take back” a release once it has been promoted to a channel. Docs