# Uninstalling Medulla Agent Version 5.5.2 and later

<p class="callout info">**Applies to:**Medulla – Agent  
**Version:** 5.5.2 and later  
**Environment:** On-Premise / Private SaaS / Shared SaaS  
**Category:** Medulla Agent</p>

### Windows:

A script is available on your Medulla server:

[https://votreserveur/downloads/win/uninstall-medulla-agent-windows.ps1](https://votreserveur/downloads/win/uninstall-medulla-agent-windows.ps1)

Open a PowerShell console with administrator privileges. Make sure PowerShell is configured to run scripts:

```
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
```

Answer \[A\] "Yes to all"

<div id="bkmrk-%C3%89tapes-%3A">**Steps:**</div>1. **Download the** uninstall-medulla-agent-windows.ps1**script** to the machine.
2. **Run the script** depending on the scenario you want to handle:

- Uninstall only the agent and its Medulla dependencies.

```
.\uninstall-medulla-agent.ps1 
```

- Uninstall the agent and glpi-agent

```
.\uninstall-medulla-agent.ps1 -RemoveGLPI:$true
```

- Uninstall the agent, GLPI, and TightVNC

```
.\uninstall-medulla-agent.ps1 -RemoveGLPI:$true -RemoveTightVNC:$true
```

- Uninstall the agent, glpi-agent, tightvnc, and Python

```
.\uninstall-medulla-agent.ps1 -RemovePython:$true -RemoveGLPI:$true -RemoveTightVNC:$true
```

A -SILENT option is available, which allows you to run the uninstallation in silent mode in each case.

### Linux:

A script is available on your Medulla server:

[https://votreserveur/downloads/win/uninstall-medulla-agent-linux.sh](https://votreserveur/downloads/win/uninstall-medulla-agent-linux.sh)

The script runs as root or via the sudo command:

Type the following commands:

```
wget https://votreserveur/downloads/win/uninstall-medulla-agent-linux.sh
chmod u+x uninstall-medulla-agent-linux.sh
```

<div id="bkmrk-d%C3%A9sinstallation-de-b"><div>Basic uninstallation (without Python or GLPI)</div><div>  
</div></div>```
./uninstall-medulla-agent-linux.sh
```

<div id="bkmrk-avec-python-3.11"><div>  
</div>With Python 3.11 <div>  
</div></div>```
./uninstall-medulla-agent-linux.sh --remove-python
```

<div id="bkmrk-avec-glpi-agent"><div>  
</div>With GLPI Agent <div>  
</div></div>```
./uninstall-medulla-agent-linux.sh --remove-glpi
```

<div id="bkmrk-tout-supprimer"><div>  
</div>Remove everything <div>  
</div></div>```
./uninstall-medulla-agent-linux.sh --remove-python --remove-glpi
```

<div id="bkmrk-"><div>  
</div></div>