[GH-ISSUE #976] Right Click Mass Delete / Uninstall #2536

Open
opened 2026-03-14 04:25:02 +03:00 by kerem · 5 comments
Owner

Originally created by @davidrudduck on GitHub (Feb 16, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/976

Originally assigned to: @wh1te909 on GitHub.

Is your feature request related to a problem? Please describe.
It is PAINFUL to remove a large number of agents presently.
The way our process works, we use TRMM for Incident Response, so at the end of a project we need to remotely remove our agent and remove the agent from TRMM.

Describe the solution you'd like
Ability to right click a Company or Site and selecting between "MASS UNINSTALL AND REMOVE" and "MASS REMOVE" agents.

Originally created by @davidrudduck on GitHub (Feb 16, 2022). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/976 Originally assigned to: @wh1te909 on GitHub. **Is your feature request related to a problem? Please describe.** It is PAINFUL to remove a large number of agents presently. The way our process works, we use TRMM for Incident Response, so at the end of a project we need to remotely remove our agent and remove the agent from TRMM. **Describe the solution you'd like** Ability to right click a Company or Site and selecting between "MASS UNINSTALL AND REMOVE" and "MASS REMOVE" agents.
Author
Owner

@bc24fl commented on GitHub (Feb 16, 2022):

Have you tried to do this using the API?

<!-- gh-comment-id:1042176302 --> @bc24fl commented on GitHub (Feb 16, 2022): Have you tried to do this using the API?
Author
Owner

@davidrudduck commented on GitHub (Feb 16, 2022):

Not all my team would know how to use the API; and this is generally a task I'd assign to a lower level engineer to perform.

I don't even know what endpoint I'd be polling. Can you please provide an example of how this might work with the API?

<!-- gh-comment-id:1042408208 --> @davidrudduck commented on GitHub (Feb 16, 2022): Not all my team would know how to use the API; and this is generally a task I'd assign to a lower level engineer to perform. I don't even know what endpoint I'd be polling. Can you please provide an example of how this might work with the API?
Author
Owner

@bc24fl commented on GitHub (Feb 17, 2022):

Not sure what the devs are going to do with your request but I know they're swamped. I've been working on some related scripts and modified this one below which should work. You only need to run this script from one device and it will loop through each agent based on the provided client/site name and uninstall / delete each (hopefully =) ) . Report back results and we'll add it to the community scripts for others to use.

https://github.com/bc24fl/tacticalrmm-scripts/blob/main/Mass_Delete_Agents.ps1

<!-- gh-comment-id:1042547095 --> @bc24fl commented on GitHub (Feb 17, 2022): Not sure what the devs are going to do with your request but I know they're swamped. I've been working on some related scripts and modified this one below which should work. You only need to run this script from one device and it will loop through each agent based on the provided client/site name and uninstall / delete each (hopefully =) ) . Report back results and we'll add it to the community scripts for others to use. https://github.com/bc24fl/tacticalrmm-scripts/blob/main/Mass_Delete_Agents.ps1
Author
Owner

@wh1te909 commented on GitHub (Feb 19, 2022):

should be simple enough we can just add a "force" checkbox to the current delete client/site delete form as now it won't let you delete it if there are any agents still in that client/site

<!-- gh-comment-id:1045415442 --> @wh1te909 commented on GitHub (Feb 19, 2022): should be simple enough we can just add a "force" checkbox to the current delete client/site delete form as now it won't let you delete it if there are any agents still in that client/site
Author
Owner

@silversword411 commented on GitHub (Mar 16, 2022):

Added script to wip

github.com/amidaware/community-scripts@bab51110c6

<!-- gh-comment-id:1069626102 --> @silversword411 commented on GitHub (Mar 16, 2022): Added script to wip https://github.com/amidaware/community-scripts/commit/bab51110c63a1284cdc3550e134a8d478149be1b
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#2536
No description provided.