
# 卸载Linux版本
本文介绍卸载Linux版本MgC Agent的方法。
#### 操作步骤
1. 执行如下命令，进入MgC Agent安装目录中的scripts目录。 
   ```
   cd /opt/cloud/MgC-Agent/scripts/
   ```
   
   
2. 执行如下命令，启动MgC Agent卸载脚本。 
   ```
   ./uninstall.sh
   ```
   当出现如下图所示提示时，表示Linux版的MgC Agent需要更新环境变量。
   ![](https://support.huaweicloud.com/tg-mgc/zh-cn_image_0000002107455729.png "点击放大")
   
   
3. 执行如下命令，更新环境变量。 
   ```
   source /etc/profile
   ```
   
   
4. 执行如下命令，启动MgC Agent卸载脚本。 
   ```
   ./uninstall.sh
   ```
   当出现如下图所示提示时，表示Linux版的MgC Agent已经卸载。
   ![](https://support.huaweicloud.com/tg-mgc/zh-cn_image_0000002239025945.png "点击放大")
   
   
 
