CP code

Synopsis

Delete a CP code.

Syntax

Remove-NetstorageCPCode [-CPCodeID] <Int32> [-StorageGroupID] <Int32> [-ForceDelete] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Use this operation to delete a specific CP code for a specified storage group. To prevent accidental removal of non-empty CP codes, a second user needs to also perform a DELETE request. Perform the secondary DELETE request using this API, Control Center, or by contacting your account representative.

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.

‑CPCodeID
Required

Your Content Provider (CP) code's ID.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑ForceDelete

A boolean value to force deletion of non-empty storage groups.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑StorageGroupID
Required

Your storage group's ID.

Related Links

User Guide: Netstorage