Delete Many Devices
Delete devices in bulk in JFrog Connect.
If you are reorganizing your account and need to remove several devices at once, JFrog Connect has two convenient methods to accomplish this. You can move all the relevant devices into a single group, then delete the group, or you can move all the relevant devices into a single fleet, then delete the fleet. Both procedures are described below.
Tip: If you just need to remove a single device, see Delete a Device.
Delete Devices by Deleting Group
To remove bulk devices by deleting a group, do the following:
Gather all the devices that you want to delete into a single group by following the procedure in Add Many Devices to Group.
Uninstall the Connect Agent from each of the devices. This requires the following steps:
Create a new update flow that uses the Run Command action. In the Command field, enter the command below:
systemctl disable upswift --now 2>/dev/null ; systemctl disable connect --now 2>/dev/null ; rm -rf /etc/upswift/ /etc/connect/ /etc/system/systemd/upswift.service /etc/system/systemd/connect.service 2>/dev/null ;
Deploy the update flow. When you select devices in the deployment creation, choose the Group that you created in Step 1. After the deployment is completed successfully on all the devices in the group, continue to the next step.
Delete the group by following the procedure in Delete Group. When you delete a group, all the devices in that group are also deleted.
Delete Devices by Deleting Fleet
To remove bulk devices by deleting a fleet, do the following:
Gather all the devices that you want to delete into a single fleet by following the procedure in Move Device Between Fleets.
Uninstall the Connect Agent from the devices. You can use the same update flow and command as in Step 2 above. However, when you create the deployment and select devices, choose All Groups in the fleet. After the deployment is completed successfully, continue to the next step.
Delete the fleet by following the procedure in Delete Fleet. When you delete a fleet, all the devices in that fleet are also deleted.
What’s Next?
At this stage, you might want to refresh your memory on how to Register Devices at Scale.
Was this helpful?