< Back
Remove-OctopusResource
Post
NAME Remove-OctopusResource
SYNOPSIS
Deletes resources from an Octopus Instance
SYNTAX
Remove-OctopusResource [[-Resource] <Resource[]>] [<CommonParameters>]
DESCRIPTION
Deletes resources from an Octopus Instance
PARAMETERS
-Resource <Resource[]>
Resource Object to delete from the Octopus Server
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Octopus.Client.Model.Resource[]
Resource Object to delete from the Octopus Server
OUTPUTS
System.Boolean
---------- EXAMPLE 1 ----------
PS C:\\> $ProjectResource = Get-OctopusProject -name "MyApp" ; Remove-OctopusResource -resource $ProjectResource
Deletes the project called "MyApp" from the Octopus Instance
---------- EXAMPLE 2 ----------
PS C:\\> Get-OctopusProjectGroup -name "MyProjects" | select -ExpandProperty Projects | Remove-OctopusResource
Deletes all the projects inside the Project Group "MyProjects"
RELATED LINKS
WebSite: http://Octoposh.net
Github Project: https://github.com/Dalmirog/OctoPosh/
Wiki: http://octoposh.readthedocs.io
QA and Feature requests: https://gitter.im/Dalmirog/OctoPosh#initial
SYNOPSIS
Deletes resources from an Octopus Instance
SYNTAX
Remove-OctopusResource [[-Resource] <Resource[]>] [<CommonParameters>]
DESCRIPTION
Deletes resources from an Octopus Instance
PARAMETERS
-Resource <Resource[]>
Resource Object to delete from the Octopus Server
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Octopus.Client.Model.Resource[]
Resource Object to delete from the Octopus Server
OUTPUTS
System.Boolean
---------- EXAMPLE 1 ----------
PS C:\\> $ProjectResource = Get-OctopusProject -name "MyApp" ; Remove-OctopusResource -resource $ProjectResource
Deletes the project called "MyApp" from the Octopus Instance
---------- EXAMPLE 2 ----------
PS C:\\> Get-OctopusProjectGroup -name "MyProjects" | select -ExpandProperty Projects | Remove-OctopusResource
Deletes all the projects inside the Project Group "MyProjects"
RELATED LINKS
WebSite: http://Octoposh.net
Github Project: https://github.com/Dalmirog/OctoPosh/
Wiki: http://octoposh.readthedocs.io
QA and Feature requests: https://gitter.im/Dalmirog/OctoPosh#initial