Describe the solution you'd like
Ability to select multiple releases from the list (Distribute / Releases) and delete them all at ones.
Describe alternatives you've considered
Current method of deleting intermittent releases required tapping on each one (three dots) , tapping on delete and answering confirmation dialog which is very time consuming.
Considered alternative is to do it automatically via API, but there are no API to delete release either.
Additional context
Our development process pushes multiple CI builds to the AppCenter every day, so by the time application is ready for release, we have hundreds of CI builds that are never going to be used again in the app center. Which is super time consuming to delete manually one at the time.
Hi there,
Thanks for the suggestion! We'll keep this in mind through the next iteration of UI updates.
As for the API, there is a delete release API given the release id
https://openapi.appcenter.ms/#/operations/distribute/releases_delete
Let me know if this will solve your issue via API.
Can this feature also include disabling/enabling multiple releases?
Integrating an API is always easy, but it'd be nice for our team analysts (not just devs) to have the ability to Delete, Disable, or Enable more than 1 release at a time.
When we setup a CI/CD "DevOps" build cycle, we get automatic builds at high volumes. so manually having to come groom each AppCenter release, especially by Platform, can become very time consuming.
Also interested in this – for now can I confirm there is no issue with having hundreds/thousands of builds for an app in AppCenter?
I also need that
Definitely need the ability to bulk delete from the UI.
Hello! Our team would highly appreciate this feature. We have dosens of builds automatically uploaded from our CI. It is kinda getting hard to find anything.
Need this asap :)
Use the appcenter-cli
npm install -g appcenter-cliappcenter login#!/bin/bash
for ((i=1; i<10; i++))
do
appcenter distribute releases delete -r $i --app {{Your APP}} --quiet
done
Removal via the appcenter cli is pretty slow.
Option for those who have nodejs.
1) Run in your terminal - npm install appcenter-cli -g
2) Run appcenter login
3) The browser will open and show you the token (copy it)
4) Create anywhere script.js
5) Run npm install node-fetch in the script.js directory
6) Copy to your script.js next code
const fetch = require('node-fetch');
let owner = ""; // application owner
let appName = ""; // application name
let token = "" // your token that you copied;
let from = 0; // from which release number to delete
let to = 0; // by which release number to delete
let url = `https://api.appcenter.ms/v0.1/apps/${owner}/${appName}/releases/`;
let requestInfo = {
method: "delete",
headers: { "X-API-TOKEN": token }
};
async function* asyncGenerator() {
var i = from;
while (i <= to) {
yield i++;
}
}
(async function() {
for await (let num of asyncGenerator()) {
try {
await fetch(url + num, requestInfo);
console.log(`Release ${num} deleted`)
} catch (err) {
console.log(err);
}
}
})();
7) Run node script.js
@botatoes seriously? since 2019????
Hi there,
Thanks for the suggestion! We'll keep this in mind through the next iteration of UI updates.
Most helpful comment
Use the appcenter-cli
npm install -g appcenter-cliappcenter login