

![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](listconnections.md)    
[addconnection](addconnection.md)    
[updateconnection](updateconnection.md)    
[duplicateconnection](duplicateconnection.md)    
[getshareddevice](getshareddevice.md)    
[setshareddevice](setshareddevice.md)    
[clearshareddevice](clearshareddevice.md)  
