# Can't remove connection via cli on raspberry pi debian OS

**URL:** https://forum.remote.it/t/cant-remove-connection-via-cli-on-raspberry-pi-debian-os/1055
**Category:** Troubleshooting
**Created:** [April 4, 2024, 8:22pm UTC](https://forum.remote.it/t/cant-remove-connection-via-cli-on-raspberry-pi-debian-os/1055 "2024-04-04T20:22:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fkremote](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@fkremote](https://forum.remote.it/u/fkremote)
#### Post date: [April 4, 2024, 8:22pm UTC](https://forum.remote.it/t/cant-remove-connection-via-cli-on-raspberry-pi-debian-os/1055/1 "2024-04-04T20:22:32Z")

</div>

Hi,

I have the below connections and I would like to remove one of them, but it seems that the remoteit agent response with no service to remove?

```auto
pi@raspberrypi:~ $ sudo remoteit status
 ✓ Fetching status

 owner: fotis.karelas@gmail.com, deviceRegistered: true, services: 0, connections: 3

 device | type | state | address
--------------------------------------------------------------------------------------------
 <device ID> | device | connecting | 127.0.0.1:65535

 connection | type | state | address | enabled | p2p | failover
------------------------------------------------------------------------------------------------------------------------------------------------
 90:99:99:99:99:99:99:91 | MySQL (45) | ready | <hostname>-mysql.at.remote.it:33060 | true | false | false
 90:99:99:99:99:99:99:92 | SSH (28) | ready | <hostname>-ssh.at.remote.it:33022 | true | false | false
 90:99:99:99:99:99:99:93 | HTTP (7) | ready | https://<hostname>-influxdb.at.remote.it:8086 | true | false | false

pi@raspberrypi:~ $ sudo remoteit remove --id <service ID2>
 × No services to remove (CODE: 2)

```

Any idea how to remove or why does it say “No services to remove” ?

p.s. Actually on all 3 connections it is not possible to remove them with the same reason.

---

<div class="post-metadata">

### Author: ![bstrech](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.remote.it/bstrech/32/266_2.png) [@bstrech](https://forum.remote.it/u/bstrech)
#### Post date: [April 4, 2024, 9:01pm UTC](https://forum.remote.it/t/cant-remove-connection-via-cli-on-raspberry-pi-debian-os/1055/2 "2024-04-04T21:01:27Z")

</div>

Hello,  
The command you are running is actually to remove a registered service on the device and not the connection. The current state of this device is that you have it registered as a device but there are no services registered to accept connections. This means that you cannot make a connection from another device or app to this device.

To remove a connection, use the command:

```auto
sudo remoteit connection remove --id <connection id>

```

You can always get help by running the command:

```auto
sudo remoteit help

```

Or if you are at a specific level like connections, you can run:

```auto
sudo remoteit connection --help

```
