How to completely delete application

I previously deleted application XXX, it is not displayed in the application list anymore.

But when I try to add a new device, the system keeps saying " permission denied
devices rights to application XXX". It mean XXX application and their device still exist.
How can I completely delete XXX application and also delete registered devices in its application.

Any suggestion to fix this error?

In this case, ā€˜deleteā€™ means hide from view.

Youā€™ll have to ask someone at TTN how much it may cost for them to dip in to the database and remove the entries.

Never delete anything!

Look like a trap. All community TTN users should be warned. :slight_smile:

Itā€™s not a trap - I was being flippant about the costs - if you ask nicely, perhaps someone will help you out.

1 Like

did you delete all the devices first before deleting the application?

No, I did not.

@arjanvanb &/or @kersing - is there a procedure for restoring an application thatā€™s been deleted with devices that need to be used, or at least someone we can direct @Somsak to discuss his conundrum?

I think itā€™s more that the user loses their rights to the application, so itā€™s doesnā€™t even need to be set to some hidden state:

And:

I donā€™t know if anyone can fix that.

OMG - best swap a few units over to OTAA then just in case a collaborator gets a bit carried away.

I donā€™t think OTAA will help? The combination of DevEUI and AppEUI would still be registered (unless one reprograms the device).

Siri, add ā€œactually try out a device / app delete on TTN on a dummy accountā€ to the top of my to do list

IF it is ā€œhideā€, then it should be called ā€œhideā€ and not ā€œdeleteā€. Now we have the worst of both;

niclas@d1:~$ ttnctl applications add lantmannen_malmo "" --app-eui="A000000000000100,A8404169E1822FB5,A8404161B1822FA2" --handler-id=ttn-handler-eu
 FATAL Could not add application                error=An app with the application id lantmannen_malmo already exists

niclas@d1:~$ ttnctl applications delete lantmannen_malmo
Are you sure you want to delete application lantmannen_malmo?
> yes
 FATAL Could not delete application             error=Application with id lantmannen_malmo does not exist
1 Like

I also have had this issue, to me, it looks like a bugā€¦

if I delete an application, it should delete and clean up all devices ectā€¦

CometĆ­ el mismo ā€œerrorā€ de Borrar. Se agradecerĆ­a una alerta que indique ā€œHIDEā€ y no ā€œDELETEā€
I make the same ā€œerrorā€. IĀ“d appreciate an alert message such as, ā€œYou will Hideā€ not ā€œDELETEā€
How can solve it now ???

Couple of things to note here:

  1. It is not possible anymore to delete an application that still has devices (you will get an error message)
  2. There is a big warning displayed currently when deleting an entity warning about the implications, including the fact that the ID cannot be reused (note that device IDs can be reused though)
  3. Admins are able to restore deleted entities, though itā€™s currently only possible via CLI
  4. Admins are also able to ā€œpurgeā€ entities, meaning a hard-delete that will also release the entity IDs for reuse
1 Like

Thanks for this update @kschiffer
How would I go about requesting such a purge from an Admin?

Say to yourself ā€œHey, you, Mr Admin, get the CLI out for TTS and purge the entitiesā€.

You are your admin.

Read the CLI docs for the commands.

Thank you I didnā€™t realize I was the admin. I understood it as a reference to the admins of the whole of TTN.

Anyhow I read to the docs installed the CLI to find out purging is available for everything except end devices. So that is a dead end.

It is not necessary to purge devices. Their IDs can be reused after deletion.

1 Like