mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-06 12:27:46 +00:00
1.2 KiB
1.2 KiB
id, title, pagination_label, sidebar_label, sidebar_position, sidebar_class_name, keywords, description, slug, tags
| id | title | pagination_label | sidebar_label | sidebar_position | sidebar_class_name | keywords | description | slug | tags | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| powershell-sdk-delete | Deleting resources with the PowerShell SDK | PowerShell SDK | Delete a resource | 4 | powershellsdk |
|
Learn how to delete resources using the PowerShell SDK in this guide. | /tools/sdk/powershell/delete |
|
You can use the SDK to delete resources. These cmdlets will typically start with the Remove keyword.
Here is an example script that searches for the previously created Workgroup by name and calls the delete cmdlet to remove it from your environment.
$WorkGroup = Get-BetaWorkgroups -Filters 'name eq "DB Access Governance Group"'
Remove-BetaWorkgroup -Id $WorkGroup.id -WithHttpInfo
Using the WithHttpInfo Switch in the script above, we can verify the operation completed successfully by the 204 status code.
Name Value
---- -----
Response
StatusCode 204
Headers {[Date, System.String[]], [Connection, System.String[]], [Server, System.String[]], [Vary, System.String[]]…}