# Impossible to remove services

**URL:** https://forum.remote.it/t/impossible-to-remove-services/1115
**Category:** Troubleshooting
**Created:** [July 2, 2024, 2:59pm UTC](https://forum.remote.it/t/impossible-to-remove-services/1115 "2024-07-02T14:59:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ripper346](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.remote.it/ripper346/32/131_2.png) [@Ripper346](https://forum.remote.it/u/Ripper346)
#### Post date: [July 2, 2024, 2:59pm UTC](https://forum.remote.it/t/impossible-to-remove-services/1115/1 "2024-07-02T14:59:41Z")

</div>

Hi, just as the title say, how can I remove a service?

When I do a status I get

```auto
 device | type | state | address
--------------------------------------------------------------------------------------------
 ... | device | connected | 127.0.0.1:65535

 service | type | state | address | enabled
-------------------------------------------------------------------------------------------------------
 90:00:00:00:00:13:6C:39 | TCP (1) | connected | 127.0.0.1:22 | true
...

```

I added that service with `sudo remoteit add --name ssh --port 22 --type 1`. To remove it, I tried with  
`sudo remoteit remove --id [...] but it gives error 3000`  
or  
`sudo remoteit connection remove --id [...]` it says ok but if I check with status it is still there. I also tried before to do a disconnect but it still say “connected”.

What should I do to remove it? I can’t access the web UI in case, only from bash. Thank you.

---

<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: [July 2, 2024, 4:14pm UTC](https://forum.remote.it/t/impossible-to-remove-services/1115/2 "2024-07-02T16:14:17Z")

</div>

If you do not have any active connections, then you can delete it.  
If the service doesn’t exist on that device, you cannot remove it. The CLI is meant to control that device. You can remove the service from the web UI or from your desktop application from that device or any other device if it is cloud configurable (this should be the case for most modern devices). You can determine that by looking at your list and showing that attribute or by looking at the detail page. See attached images.

 ![Remote_It_Application](https://canada1.discourse-cdn.com/flex030/uploads/remote/original/1X/8c134d19ac805aa4eb6c61d9218f6720810a9aac.png)  
 ![Remote_It_Application](https://canada1.discourse-cdn.com/flex030/uploads/remote/original/1X/3d235264a418b2c57ae4814226b0c9bfedbd935c.png)  
If it is configurable, then you can delete the service by clicking on the service, then the 3 dots in the upper right and selecting “Delete Service”  
 ![Remote_It_Application](https://canada1.discourse-cdn.com/flex030/uploads/remote/original/1X/2d74b6feb3d20925900d98a72823cedda6bdf539.png)

---

<div class="post-metadata">

### Author: ![Ripper346](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.remote.it/ripper346/32/131_2.png) [@Ripper346](https://forum.remote.it/u/Ripper346)
#### Post date: [July 2, 2024, 4:18pm UTC](https://forum.remote.it/t/impossible-to-remove-services/1115/3 "2024-07-02T16:18:56Z")

</div>

Isn’t there a faster way without using web ui? I kind of messed up and registered 135 services more than I should and I wanted to avoid deregistering the full device.

Also I am directly on the device with local service, I am not in remote in those commands (well I am in ssh but still in remoteit perspective).

Moreover, if I can add from cli why shouldn’t I be able to remove from the same interface?! And what does code 3000 mean so I can try to fix it?!

---

<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: [July 2, 2024, 4:41pm UTC](https://forum.remote.it/t/impossible-to-remove-services/1115/4 "2024-07-02T16:41:57Z")

</div>

If your device is an older CLI that is not configurable, then you will need to SSH into that device and run the appropriate commands to delete the service.  
First run the status command to get the list of registered services and service IDs. Please note, I am prefacing the commands with sudo for Linux. If this is a Windows computer, you will need to run as administrator and leave out the sudo part.

```auto
sudo remoteit status

```

You will not worry about the connections portion since you cannot make a connection back to your own service.  
See attached screenshot

 ![-zsh](https://canada1.discourse-cdn.com/flex030/uploads/remote/original/1X/6a5ae169a54e0c8700d02954c53bbe7345e05a2d.png)  
You can doublecheck your commands for service removal by running the following:

```auto
sudo remoteit help

```

In my case it is

```auto
sudo remoteit service remove --id <ID>

```

If you want to remove all of the services, like in your case where you have 135 and you do not want to run these commands 135 times, then you can start over and unregister the device, then add back the couple of services that you need. You must have run the command 135 times so you need to run it for each service.

```auto
sudo remoteit device unregister

```

Then Register. You do not want to restore, otherwise you will restore all of your services.

```auto
sudo remoteit device register

```

Then add back your services that you want.

---

<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: [July 2, 2024, 4:45pm UTC](https://forum.remote.it/t/impossible-to-remove-services/1115/5 "2024-07-02T16:45:51Z")

</div>

FYI your syntax was wrong when you ran

```auto
sudo remoteit remove --id [...] 

```

I think you meant to add service before remove, but if you didn’t that is where you went wrong, this would produce error code 3000

The syntax should have been

```auto
sudo remoteit service remove --id [...]

```

---

<div class="post-metadata">

### Author: ![Ripper346](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.remote.it/ripper346/32/131_2.png) [@Ripper346](https://forum.remote.it/u/Ripper346)
#### Post date: [July 3, 2024, 8:00am UTC](https://forum.remote.it/t/impossible-to-remove-services/1115/6 "2024-07-03T08:00:41Z")

</div>

So, first message is exactly what I wrote in my first post. As for `sudo remoteit service remove --id [...]` it does nothing. With verbose output, I get

```auto
remoteit service remove --id 90:00:00:00:00:13:6C:39 -v
~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~
remoteit agent START @ 2024-07-03T07:59:09Z
remoteit agent START args: remoteit service remove --id 90:00:00:00:00:13:6C:39 -v
remoteit agent STOP @ 2024-07-03T07:59:09Z
~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~  ~~~~~~~~

```

Also at the moment I am running the version 3.0.21, don’t know if I have to upgrade to use it

---

<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: [July 8, 2024, 4:44pm UTC](https://forum.remote.it/t/impossible-to-remove-services/1115/7 "2024-07-08T16:44:08Z")

</div>

You are on a significantly older version of the CLI, but the service removing should work.  
You can try upgrading the package, which is pretty easy.  
You can follow the instructions here:

> **[Installation | Remote.It](https://docs.remote.it/software/cli/overview#quick-install-and-registration)**

Instead of the registration code, you should use the restore code since it is for the same device.  
You can find instructions to get the restore code here: [Restore A Device](https://link.remote.it/support/restore-device)  
Let me know how it goes.
