# Uninstalling Avantra

The Avantra components should be removed in the following order:

1. Remove all Avantra Agents from servers.

2. Remove all SAP Transports and users from SAP Systems.

3. Remove all database, cloud and integration users from those systems.

4. Remove the Avantra Server components.

## Uninstalling Avantra Agent

### On Microsoft Windows operating systems

Proceed as follows:

1. Open Control Panel\All Control Panel Items\Programs and Features.

2. Select the entry `Avantra Agent 23.0.n` and press the Remove button.

3. Follow the instructions on the screen.

4. Close the Programs and Features control panel.

5. Delete the `C:\Program Files\syslink` directory.

### On Unix-like operating systems

Proceed as follows (you probably need to perform the steps as user `root`):

1. Stop the Avantra Agent by executing the command `/syslink/agent/rc.agent stop`

2. Remove the whole directory `/syslink`.

3. Remove and link to `rc.agent` that may exist.

4. If you prefer, remove the operating system user and group `xandria`, or whatever user you used to run Avantra Agent. Consult your operating system documentation on how to remove a user or group.

5. Remove the user or group `xandria` as a member from the groups `sapsys`, `dba`, and `db[sid]adm`, if required.

### Removing the Avantra SAP Users

If you have created a dedicated SAP User for Avantra, you may remove this user (e.g. `XANDRIA_RFC` or `XANDRIA_J2EE` or `AVANTRA_RFC` or `AVANTRA_J2EE`) using transaction `SU01` (ABAP) and the Visual Administrator or the `UME` console.

Consult your SAP system documentation on how to remove an SAP User.

### Removing the transport requests

If it is required to remove objects imported by the transport request, please see Remove Avantra namespace objects from SAP systems below 7.30 and Remove Avantra namespace objects from SAP systems 7.30 and above

## Uninstalling Avantra Server Components

### On Microsoft Windows operating systems

In order to remove the Avantra Server components, proceed as follows:

1. Open Control Panel\All Control Panel Items\Programs and Features.

2. Follow the instructions on the screen.

3. Select the entry `Avantra Server` and press the Change button.

4. Follow the instructions on the screen.

5. Close the Programs and Features control panel.

6. Delete the `C:\Program Files\syslink` directory.

If you have installed the Microsoft SQL Server 2016 Express Edition, you probably want to remove this software as well:

1. Open Control Panel\All Control Panel Items\Programs and Features.

2. Select the entry `Microsoft SQL Server 2016` and press the Remove button.

3. Follow the instructions on the screen.

4. Refresh the Programs and Features control panel, i.e. press F5.

5. Select the entry `Microsoft SQL Server Native Client` and press the Remove button.

6. Close the Programs and Features control panel.

7. If preferred, and if no other Microsoft SQL Server components are installed, you may delete the `C:\Program Files\Microsoft SQL Server` directory.

You probably want to remove the Java Runtime Environment installed during the Avantra Server installation as well:

1. Open Control Panel\All Control Panel Items\Programs and Features.

2. Select the entry `Java 8 Update <x>` and press the Remove button.

3. Follow the instructions on the screen.

4. Close the Programs and Features control panel.

### On Unix-like operating systems

Proceed as follows:

1. Stop all daemons:

       root$ /syslink/xangui/rc.xangui stop
       root$ /syslink/master/rc.master stop
       root$ /syslink/xandriadb/rc.xandriadb stop

2. Remove all entries of `xandria` from the `cron` facility.

3. Remove directory `/syslink`:

       root$ rm -rf /syslink

4. Refer to your system documentation ow to delete Java.

5. Remove user `xandria`, remove group `xandria`, remove directory `/home/xandria`.