Summary

Deletes resources from an Octopus Instance

Parameters

Name DataType Description
Resource Resource Object to delete from the Octopus Server

Syntax


Remove-OctopusResource [[-Resource] <Resource[]>] [<CommonParameters>]




Examples

EXAMPLE 1

Deletes the project called "MyApp" from the Octopus Instance

 $ProjectResource = Get-OctopusProject -name "MyApp" ; Remove-OctopusResource -resource $ProjectResource

EXAMPLE 2

Deletes all the projects inside the Project Group "MyProjects"

 Get-OctopusProjectGroup -name "MyProjects" | select -ExpandProperty Projects | Remove-OctopusResource