Policy
Remove-AppSecPolicy
Synopsis
Remove a security policy.
Syntax
Remove-AppSecPolicy [-ConfigName] <String> [-VersionNumber] <String> [-PolicyName] <String> [-Detail] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Remove-AppSecPolicy [-ConfigName] <String> [-VersionNumber] <String> -PolicyID <String> [-Detail] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Remove-AppSecPolicy -ConfigID <Int32> [-VersionNumber] <String> -PolicyID <String> [-Detail] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Remove-AppSecPolicy -ConfigID <Int32> [-VersionNumber] <String> [-PolicyName] <String> [-Detail] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Deletes the specified security policy from a configuration version. You can't delete a security policy that is actively in use. Before you run this operation, you need to create a new version of your security configuration.
When making a request, you can specify a configuration by its name or ID. The -VersionNumber parameter is an integer or the word latest.
Parameters
| ‑AccountSwitchKey | An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey. | 
| ‑ConfigIDConditionally required | Your configuration's ID. | 
| ‑ConfigNameConditionally required | The name of your security configuration. | 
| ‑Detail | If present, the results contain detailed information on versions. If absent, the results contain summary information on versions. | 
| ‑EdgeRCFile | Your EdgeGrid resource file to authenticate your command. Defaults to  | 
| ‑PolicyIDConditionally required | Your security policy's ID. | 
| ‑PolicyNameConditionally required | The name of your security policy. | 
| ‑Section | The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to  | 
| ‑VersionNumberRequired | A configuration's version. Can be an integer or the word  | 
Related Links
Updated 4 months ago
