For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove-PSUDeployment

Removes a deployment.

SYNOPSIS

Removes a deployment.

SYNTAX

Remove-PSUDeployment -Deployment <Deployment> [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Removes a deployment from the server.

EXAMPLES

Example 1

PS C:\> $deployment = Get-PSUDeployment -Name 'Production'
PS C:\> Remove-PSUDeployment -Deployment $deployment

Removes the deployment with the name 'Production'.

PARAMETERS

-AppToken

An application token to use for authentication.

-ComputerName

The URL of the server to connect to.

-Credential

The credentials to use to authenticate.

-Deployment

The deployment to remove.

-Integrated

For use when running within PowerShell Universal.

-TrustCertificate

Trust the certificate on the server.

-UseDefaultCredentials

Use the default credentials for the current user.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

PowerShellUniversal.Deployment

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?