# Disconnect-ERP Disconnects from a ERP - System. ## Syntax ```powershell Disconnect-ERP [[-Service] ] [] ``` ## Parameters | Type | Name | Description | Optional | |-------------------------------------------------------------------------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------| | [Url]() | Service | Url to the service that should be disconnected.
If the argument is an Uri to a CatalogService, the CatalogService and all its known services get disconnected | yes | ## Return type **empty** ← On failure the Exception/ErrorMessage can be accessed using [\$Error](). ## Remarks Disconnects from ERP-System(s).\ By calling Disconnect-ERP with no arguments, all connections are destroyed and freed. ## Examples In the following examples we are using the public OData Services () for demonstration purposes: **Disconnect all connected Services** ```powershell Disconnect-ERP ``` **Disconnect the NorthwindService** ```powershell Disconnect-ERP -Service "http://services.odata.org/V4/Northwind/Northwind.svc" ``` **Disconnect all not available services** ```powershell (Get-ERPServices) | where { -not $_.Available } | foreach { Disconnect-ERP -Service $_.Url} ```