Hello everyone,
I'm getting the error "Cannot delete device, as it is part of an active bot deployment" in Automation 360 Community Edition.
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/5db1c6b4-e840-4940-81bb-7651c7633c4c.png)
Activity Tab > In Progress: is empty
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/4f252bda-d079-4e2b-bc51-e17a9753acc7.png)
I've already done the following steps and it doesn't allow device removal.
- Restart the Bot Agent Service. (The error persists)
- Uninstall the Bot Agent
- Remove file "C:\Windows\System32\config\systemprofile\AppData\Local\AutomationAnywhere\registration.properties"
- Restart the machine.
- Reinstall as Administrator Bot Agent lastest version. (The error persists)
- Restart the machine. (The error persists)
- Uninstall the Bot Agent
- Remove residual files and folders
- "C:\Windows\System32\config\systemprofile\AppData\Local\AutomationAnywhere"
- C:\ProgramData\AutomationAnywhere
- C:\Program Files\Automation Anywhere
- %USERPROFILE%\AppData\Local\Temp
- Restart the machine.
- Reinstall as Administrator Bot Agent lastest version. (The error persists)
When I try to run a bot the error is "System allows only a single device to be registered. If you need to replace your existing device you should delete it first."
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/26de7ded-15ce-4963-b65a-bfb66d71d134.png)
When trying to reset the device through API does not work. Please help what is the correct use of the API v2/devices/reset endpoint found in the following article: https://apeople.automationanywhere.com/s/article/BOT-struck-in-In-Progress -Stage-and-not-able-to-move-it-to-history-or-BOT-struck-in-Pending-execution-Stage-and-not-able-to-move-it-to-history-on -A2019-CLOUD-environments
After successfully authenticating through the API Auth endpoint v1/authentication , I went through the procedure to reset a device based on its ID, but I get error 400 Bad Request "Reset type not set."
v2/devices/list
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/e934e2b8-c5f3-4fb3-b7cb-d4635c46f13d.png)
v2/devices/reset
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/3e2f48ff-bacc-48b1-8577-169f0c3dd2b4.png)
I have tried if it is due to syntax or data type in the following ways but it does not work
Is there a parameter missing from the POST request?
Option 1: With brackets and quotes
{ "deviceIds": { "ids": {"406"] }}
Option 2: With brackets and without quotes
{ "deviceIds": { "ids": {406] }}
Option 3: Without brackets and without quotes
{ "deviceIds": { "ids": 406 }}
Note: I have carried out the process in Automation 360 Community Edition, which is where it does not allow deleting the device due to the error "Cannot delete device, as it is part of an active bot deployment", but the progress table is empty, I also ran the procedure in Automation 360 On-Premise getting the same result: "Reset type not set." Thanks for the help, I was looking in the documentation, but I can't find anything else related to the use of v2/devices/reset
Thank you very much for the help, I stay tuned