# deleteconnection

![Parralels](https://www.parallels.com/static/pl/fileadmin/res/img/navigation/pl-logo-dk.png)

## AppserverClient Command Line Interface

### deleteconnection

deletes an existing connection.

**Category: Connections**

```
AppServerClientCLI deleteconnection -id ras:5 [-noprompt]  
```

### Arguments

* **`id (mandatory)`** Specify the connection ID to delete. Specify the "\*" symbol to delete all connections.
* **`noprompt (optional)`** Specify when deleting all connections to suppress the confirmation prompt.

### Return codes:

ok - Command was successful\
NotAvailable - Communication with the client backend failed, ensure that the client is running\
InvalidId - Invalid connection, object or session ID\
InvalidArgs - Some arguments are missing or invalid\
Exception - System problem

### Examples:

AppServerClientCLI deleteconnection AppServerCLI deleteconnection -id ras:61\
AppServerClientCLI deleteconnection AppServerCLI deleteconnection -id rdp:7\
AppServerClientCLI deleteconnection AppServerCLI deleteconnection -id \*

### Notes:

If all connections are to be deleted and -noprompt is not used, the user will be prompted to confirm the deletion.

### See also:

[listconnections](https://docs.parallels.com/landing/ras-windows-cli-guide/commands/listconnections)\
[addconnection](https://docs.parallels.com/landing/ras-windows-cli-guide/commands/addconnection)\
[updateconnection](https://docs.parallels.com/landing/ras-windows-cli-guide/commands/updateconnection)\
[duplicateconnection](https://docs.parallels.com/landing/ras-windows-cli-guide/commands/duplicateconnection)\
[getshareddevice](https://docs.parallels.com/landing/ras-windows-cli-guide/commands/getshareddevice)\
[setshareddevice](https://docs.parallels.com/landing/ras-windows-cli-guide/commands/setshareddevice)\
[clearshareddevice](https://docs.parallels.com/landing/ras-windows-cli-guide/commands/clearshareddevice)
