--- title: "Stop-VEPSQLInstancePublish" description: "Unpublishes a PostgreSQL instance from the target server. Product: Veeam Backup & Replication Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet unpublishes a PostgreSQL instance from the target" canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/stop-vepsqlinstancepublish.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for PostgreSQL > Stop-VEPSQLInstancePublish" dateModified: "2026-08-18" --- # Stop-VEPSQLInstancePublish ## Short Description Unpublishes a PostgreSQL instance from the target server. **Product**: Veeam Backup & Replication **Product Edition**: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Stop-VEPSQLInstancePublish [-InstancePublish] [-Force] [] ``` ## Detailed Description This cmdlet unpublishes a PostgreSQL instance from the target server. ::: note Publishing sessions will not stop automatically if you close the PowerShell console. To stop a publishing session, you must run the `Stop-VEPSQLInstancePublish` cmdlet. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Force

Defines that the cmdlet will show no prompt before executing the command.

SwitchParameter

False

Named

False

InstancePublish

Specifies the publishing process for a PostgreSQL instance. The cmdlet will stop the process and unpublish the instance from the target PostgreSQL server.

Accepts the VEPSQLInstancePublish object. To get this object, run the Get-VEPSQLInstancePublish cmdlet.

VEPSQLInstancePublish

True

0

True (ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Docs. ## Examples ::: example ### Stopping Publishing Process for a PostgreSQL Instance This example shows how to unpublish a PostgreSQL instance. ``` $publish = Get-VEPSQLInstancePublish -InstanceName "rhel01:5433" Stop-VEPSQLInstancePublish -InstancePublish $publish ``` Perform the following steps: 1. Run the [`Get-VEPSQLInstancePublish`](get-vepsqlinstancepublish.md) cmdlet. Specify the `InstanceName` parameter value and save the result to the `$publish` variable. 2. Run the `Stop-VEPSQLInstancePublish` cmdlet. Set the `$publish` variable as the `InstancePublish` parameter value. ::: ## Related Commands [`Get-VEPSQLInstancePublish`](get-vepsqlinstancepublish.md)