# Cannot completely delete and setup new server

**URL:** <https://forums.plex.tv/t/cannot-completely-delete-and-setup-new-server/677488>\
**Category:** Plex Media Server\
**Tags:** server-linux-arm\
**Created:** [January 12, 2021, 4:11pm UTC](https://forums.plex.tv/t/cannot-completely-delete-and-setup-new-server/677488 "2021-01-12T16:11:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![macdougallg](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/macdougallg/32/170656_2.png) [@macdougallg](https://forums.plex.tv/u/macdougallg)\
**Post date:** [January 12, 2021, 4:11pm UTC](https://forums.plex.tv/t/cannot-completely-delete-and-setup-new-server/677488/1 "2021-01-12T16:11:04Z")

</div>

Server Version#: 1.21.1.3876

Long story short, I went a little cowboy and removed my server from the settings menu and now I’m going nuts trying to create a new server.

Everything I’ve found on here so far is just running me in circles.  
The machine running PMS is a remote raspberrypi running Ubuntu at my inlaws that I have SSH access into as well as a domain that points to it to access the local web app.

What I’ve done so far:

> **[Uninstall Plex Media Server | Plex Support](https://support.plex.tv/articles/201941078-uninstall-plex-media-server/)**
>
> Warning!: Following the instructions below will completely remove your Plex Media Server, including all library metadata, viewstates, etc. If you...

I initially thought just completely removing PMS from the server would do it such that when I reinstall it and access the web app I’d be presented with the setup wizard to create a new server. Easy peasy. No dice.

So I found the link to try to force the setup wizard.  
http://{DOMAIN}/manage/index.html#!/setup  
I get what looks like the setup screen with a message that “Setup is not allowed for shared servers” Not sure why this message appears.

Searching the google machine and these forums keeps bringing me back to this post.

> **[Why am I locked out of Server Settings and how do I get in? | Plex Support](https://support.plex.tv/articles/204281528-why-am-i-locked-out-of-server-settings-and-how-do-i-get-in/?_ga=2.167214142.1850875917.1610466412-490167660.1610466412)**
>
> In some rare situations, you may find yourself “locked out” from being able to access your Plex Media Server and...

When I look at my Preferences.xml file I don’t have any of the key pairs that this post mentions. It only has:  
OldestPreviousVersion  
MachineIdentifier  
ProcessedMachineIdentifier  
AnonymousMachineIdentifier  
MetricsEpoch

I’m stuck in a loop at this point. I’ve removed and reinstalled multiple times rebooting the machine between deletion and install and searched and searched and am getting nowhere. It seems there should be a way to completely remove Plex to a point where it is as though it never existed on this server and start from scratch but I cannot find a way that actually does that despite what the guides say.

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [January 12, 2021, 4:30pm UTC](https://forums.plex.tv/t/cannot-completely-delete-and-setup-new-server/677488/2 "2021-01-12T16:30:44Z")

</div>

> [@macdougallg](#):
>
> I get what looks like the setup screen with a message that “Setup is not allowed for shared servers” Not sure why this message appears.

Suggest deleting the Preferences.xml and starting completely afresh with a new server instant

As the server is remote you would need an ssh tunnel to set it up as servers can only be setup through localhost or same subnet

See section on ssh tunnel here  
[Installation | Plex Support](https://support.plex.tv/articles/200288586-installation/)

---

<div class="post-metadata">

**Author:** ![macdougallg](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/macdougallg/32/170656_2.png) [@macdougallg](https://forums.plex.tv/u/macdougallg)\
**Post date:** [January 12, 2021, 5:01pm UTC](https://forums.plex.tv/t/cannot-completely-delete-and-setup-new-server/677488/3 "2021-01-12T17:01:58Z")

</div>

I already have an SSH tunnel. Part of what I’ve done previously is delete the entire data folder for plex (sudo rm -R /var/lib/plexmediaserver/\*) after doing a dpkg -r plexmediaserver which deleted the Preferences.xml since it’s included in the \*. This, in theory, should allow me to start totally fresh and give me the setup wizard. It doesn’t. It’s like there is a Plex ghost still lurking on the server after doing this. These issues persist after I’ve done this and reinstalled. I’ve tried older versions as well with the same or worse results.

---

<div class="post-metadata">

**Author:** ![macdougallg](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/macdougallg/32/170656_2.png) [@macdougallg](https://forums.plex.tv/u/macdougallg)\
**Post date:** [January 12, 2021, 5:23pm UTC](https://forums.plex.tv/t/cannot-completely-delete-and-setup-new-server/677488/4 "2021-01-12T17:23:35Z")

</div>

So I finally decided to actually read the post and realized what you mean. I needed to access the web app as localhost, not from the domain remotely.

This is the section that I wasn’t doing:

#### macOS or Linux

1. Open a Terminal window or your command prompt
2. Enter the following command (substituting the IP address of your server as appropriate):  
`ssh ip.address.of.server -L 8888:localhost:32400`
3. Open a browser window
4. Type `http://localhost:8888/web` into the address bar
5. The browser will connect to the server as if it were local and load Plex Web App

After doing that, all is well. I was able to create the new server. Thanks.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 12, 2021, 5:25pm UTC](https://forums.plex.tv/t/cannot-completely-delete-and-setup-new-server/677488/5 "2021-01-12T17:25:01Z")

</div>

Go to [https://app.plex.tv](https://app.plex.tv)

Settings - Authorized Devices - Server (dropdown)

Remove the Instance entry for the now-deleted server.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [April 12, 2021, 5:25pm UTC](https://forums.plex.tv/t/cannot-completely-delete-and-setup-new-server/677488/6 "2021-04-12T17:25:09Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
