Uninstall
How to remove devmagic-panel: what an uninstall removes, what it asks about, and what it always keeps.
- Command
~/.local/share/devmagic-panel/current/install.sh --uninstall- Asks about
- Your backups, removed sites, the panel's data and its local CA
- Never touches
- Your sites, their databases and certificates, and the packages it installed
The uninstall works from the installer's list of what it put on the machine, or from the usual list for installs older than v0.5.0. It asks about everything that could hold your data before it removes anything.
Remove the panel
-
See what goes and what stays, with nothing changed:
~/.local/share/devmagic-panel/current/install.sh --uninstall --dry-run -
Run it:
~/.local/share/devmagic-panel/current/install.sh --uninstall -
Answer its questions about what it asks about, or add
--yesto take the defaults without asking.
./install.sh --uninstall in a checkout does the same.
On Windows
Use Apps and features instead: it takes the Windows side back and asks whether to keep the distro the setup made, export a copy of it or remove it. A distro of your own always stays, and the command above removes the panel from it. See Windows (WSL 2).
What it removes
It stops the panel and Mailpit, then removes:
| What | Details |
|---|---|
| The panel's own site | local.devmagic: its vhost, certificate and hosts line |
| The releases | And current, and a v0.5 clone in app |
| Node.js for the panel | Only the copy the installer put there for it |
| The service | The systemd unit, and the login entry on an encrypted home |
| The panel's block in your crontab | Your own lines stay |
| The root scripts and sudoers rule | And /etc/devmagic-panel/config.env |
When the panel set up nginx
It turns nginx off when the panel set it up next to Apache:
- Every site on nginx goes back to Apache.
- Apache answers on every address again.
- nginx is stopped, and left installed.
What it asks about
| Asked | Default |
|---|---|
The backups in ~/devmagic-panel-backups |
Keep |
/var/lib/devmagic-panel: removed sites you can still restore, and the registry |
Keep |
| The panel's data: settings, saved password, the MySQL account it signs in with, run history, uploads, Mailpit | Remove |
| The install logs | Remove |
| Lingering, when the installer turned it on | Keep |
| Local mode and the login helper in your sites | Keep |
| The panel's local CA, and its trust in the system and your browsers | Remove, unless a site's certificate uses it |
Warning Without Local mode, a local copy of a site can email real people. Keep it unless you are done with those sites.
The local CA
The uninstaller checks every certificate in /etc/ssl/localcerts, and lists
the sites signed with the panel's CA. Removing the CA would break https for
them until their certificates are reissued, so then it stays unless you say
otherwise.
When it stays, the uninstaller prints how to remove it by hand later.
What it always keeps
- Your sites, their databases and their certificates.
- Certificates from another CA, like devmagic's
LocalhostCA, and that CA itself. - The wpcore cores and
/etc/wpcore.conf, and awpcorecommand of your own. - The packages it installed: WP-CLI, Apache, PHP, MySQL and the rest.
- A MySQL account it made for the panel: it stays in MySQL.
- A checkout you installed from.
Checked against devmagic-panel 1.70.0.