@rpelletier the problem is not that there’s no “deletion” action, or such. But currently when a deletion is issued, not all relevant data objects are cleared out first, before the application is deleted, and they block the deletion (because of internal consistency constraints.)
I’ve just done the fix for this other application you’ve sent, and should be able to delete. Let us know if still not!
Fortunately the other application had no devices, so the mixup didn’t cause any issues. And no worries at all.
For doing it yourself - you hopefully won’t need it anymore (as this app is fixed, and the permanent change is in testing now), but here it is.
The dashboard is using the resin SDK under the hood, and we’ve included it for easy use in the Chrome Development Tools / Javascript Console. Thus e.g. if you go to the dashboard and hit Ctrl+Shift+I
(or depends on the OS you are on, see the link with the right keyboard shortcut), you will see something like this:
Then where there’s the command prompt at the bottom, set a variable with your app’s ID.
id=...
thus in your case
id=1032304
After that, pasting this Javascript snippet will delete all the image_install
resources that are dangling for this application and allows deletion. After pasting, just wait until the done
is emitted in the console.
sdk.pine.get({
resource: 'release',
options: {
$filter: {
belongs_to__application: id
},
$expand: {
provides__image_install: {
$select: 'id'
}
}
}
})
.then((releases) => {
return releases.map((r) => r.provides__image_install);
})
.then(_.flatten)
.then((iis) => {
return Promise.all(iis.map((ii) => sdk.pine.delete({ resource: 'image_install', id: ii.id }) ))
})
.then(() => console.log('done'))
Our fix is pretty much this but run automatically when you hit delete for an application in the dashboard, or issue resin app rm ...
in the resin CLI.
So, let us know if you have any issues with your application when you try to delete (as mentioned, we’ve run this above fix on it).