mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-07 20:37:46 +00:00
Refactor docusaurus site for Identity Security Cloud
This commit is contained in:
32
docs/tools/sdk/powershell/deleting-resources.md
Normal file
32
docs/tools/sdk/powershell/deleting-resources.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
id: powershell-sdk-delete
|
||||
title: Deleting resources with the PowerShell SDK
|
||||
pagination_label: PowerShell SDK
|
||||
sidebar_label: Delete a resource
|
||||
sidebar_position: 4
|
||||
sidebar_class_name: powershellsdk
|
||||
keywords: ['powershell', 'sdk', 'delete']
|
||||
description: Learn how to delete resources using the PowerShell SDK in this guide.
|
||||
slug: /tools/sdk/powershell/delete
|
||||
tags: ['SDK']
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
```powershell
|
||||
$WorkGroup = Get-BetaWorkgroups -Filters 'name eq "DB Access Governance Group"'
|
||||
|
||||
Remove-BetaWorkgroup -Id $WorkGroup.id -WithHttpInfo
|
||||
```
|
||||
|
||||
Using the [WithHttpInfo Switch](./getting-started.md#withhttpinfo-switch) in the script above, we can verify the operation completed successfully by the 204 status code.
|
||||
|
||||
```powershell
|
||||
Name Value
|
||||
---- -----
|
||||
Response
|
||||
StatusCode 204
|
||||
Headers {[Date, System.String[]], [Connection, System.String[]], [Server, System.String[]], [Vary, System.String[]]…}
|
||||
```
|
||||
Reference in New Issue
Block a user