Remove-PSUDeployment
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 $deploymentRemoves 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
RELATED LINKS
PERMISSIONS
The access token requires settings.deployments/delete to run this cmdlet remotely.
Last updated
Was this helpful?