> For the complete documentation index, see [llms.txt](https://docs.connect.jfrog.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.connect.jfrog.io/features-new-ui/devices/delete-many-devices.md).

# Delete Many Devices

If you are reorganizing your account and need to remove several devices at once, [JFrog Connect](https://jfrog.com/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.

{% hint style="success" %}
**Tip**: If you just need to remove a single device, see [Delete a Device](/features-new-ui/devices/view-device-details/remove-a-device.md).
{% endhint %}

## Delete Devices by Deleting Group

To remove bulk devices by deleting a group, do the following:

1. Gather all the devices that you want to delete into a single group by following the procedure in [Add Many Devices to Group](/features-new-ui/account-management/organize-your-fleet/create-groups/add-many-devices-to-group.md).
2. Uninstall the Connect Agent from each of the devices. This requires the following steps:
   1. 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 ;`<br>
   2. 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.
3. Delete the group by following the procedure in [Delete Group](/features-new-ui/account-management/organize-your-fleet/create-groups/delete-group.md). 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:

1. Gather all the devices that you want to delete into a single fleet by following the procedure in [Move Device Between Fleets](/features-new-ui/account-management/organize-your-fleet/move-a-device/move-many-devices.md).
2. 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.
3. Delete the fleet by following the procedure in [Delete Fleet](https://docs.connect.jfrog.io/administration-new-ui/fleet-settings/manage-projects/delete-project). 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](/features-new-ui/account-management/register-linux-devices-at-scale.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.connect.jfrog.io/features-new-ui/devices/delete-many-devices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
