---
updatedAt: 2026-05-21T21:17:45.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/powershell/llms.txt
---

# Rule set

Remove-NetstorageRuleSet

## Synopsis

Delete a rule set.

## Syntax

```powershell
Remove-NetstorageRuleSet [-RuleSetID] <Int32> [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## Description

Deletes a specified rule set.

## Parameters

<table>
  <tbody>
    <tr>
      <td class="ps-td"><code>&#8209;AccountSwitchKey</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>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 <a href="https://techdocs.akamai.com/powershell/docs/get-accountswitchkey">Get-AccountSwitchKey</a>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;EdgeRCFile</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>Your EdgeGrid resource file to authenticate your command. Defaults to <code>~/.edgerc</code>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;RuleSetID</code><br/><span style="color: red; padding-left: 11px; font-size: 13px;"><em>Required</em></span></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">Int32</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>Your rule set's ID.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Section</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to <code>default</code>.</p>
        </div>
      </td>
    </tr>
  </tbody>
</table>

## Related Links

* [User Guide: NetStorage](https://techdocs.akamai.com/powershell/docs/netstorage)
* [API Reference](https://techdocs.akamai.com/netstorage/reference/delete-rule-set)

# Sibling pages

* [CP code](https://techdocs.akamai.com/powershell/docs/remove-netstoragecpcode.md)
* [Directory](https://techdocs.akamai.com/powershell/docs/remove-netstoragedirectory.md)
* [FTP key](https://techdocs.akamai.com/powershell/docs/remove-netstorageuploadaccountftpkey.md)
* [Group](https://techdocs.akamai.com/powershell/docs/remove-netstoragegroup.md)
* [HTTP key](https://techdocs.akamai.com/powershell/docs/remove-netstorageuploadaccounthttpkey.md)
* [Object](https://techdocs.akamai.com/powershell/docs/remove-netstorageobject.md)
* [Purge routine](https://techdocs.akamai.com/powershell/docs/remove-netstoragecpcodepurgeroutine.md)
* [Rsync key](https://techdocs.akamai.com/powershell/docs/remove-netstorageuploadaccountrsynckey.md)
* [Snapshot](https://techdocs.akamai.com/powershell/docs/remove-netstoragesnapshot.md)
* [SSHKey](https://techdocs.akamai.com/powershell/docs/remove-netstorageuploadaccountsshkey.md)
* [Upload account](https://techdocs.akamai.com/powershell/docs/remove-netstorageuploadaccount.md)