---
title: "POST /#X-Amz-Target=AWSWAF_Regional_20161128.DeleteXssMatchSet"
method: POST
path: "/#X-Amz-Target=AWSWAF_Regional_20161128.DeleteXssMatchSet"
---

# POST /#X-Amz-Target=AWSWAF_Regional_20161128.DeleteXssMatchSet

`POST /#X-Amz-Target=AWSWAF_Regional_20161128.DeleteXssMatchSet`

<note> <p>This is <b>AWS WAF Classic</b> documentation. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p> </note> <p>Permanently deletes an <a>XssMatchSet</a>. You can't delete an <code>XssMatchSet</code> if it's still used in any <code>Rules</code> or if it still contains any <a>XssMatchTuple</a> objects.</p> <p>If you just want to remove an <code>XssMatchSet</code> from a <code>Rule</code>, use <a>UpdateRule</a>.</p> <p>To permanently delete an <code>XssMatchSet</code> from AWS WAF, perform the following steps:</p> <ol> <li> <p>Update the <code>XssMatchSet</code> to remove filters, if any. For more information, see <a>UpdateXssMatchSet</a>.</p> </li> <li> <p>Use <a>GetChangeToken</a> to get the change token that you provide in the <code>ChangeToken</code> parameter of a <code>DeleteXssMatchSet</code> request.</p> </li> <li> <p>Submit a <code>DeleteXssMatchSet</code> request.</p> </li> </ol>

## Headers

- `X-Amz-Target` 'AWSWAF_Regional_20161128.DeleteXssMatchSet', required

## Request body

- DeleteXssMatchSetRequest — A request to delete an <a>XssMatchSet</a> from AWS WAF.
  - `XssMatchSetId` string, required — The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and by <a>ListXssMatchSets</a>.
  - `ChangeToken` string, required — The value returned by the most recent call to <a>GetChangeToken</a>.

## Response `200`

Success

- DeleteXssMatchSetResponse — The response to a request to delete an <a>XssMatchSet</a> from AWS WAF.
  - `ChangeToken` string — The <code>ChangeToken</code> that you used to submit the <code>DeleteXssMatchSet</code> request. You can also use this value to query the status of the request. For more information, see <a>GetChangeTokenStatus</a>.

## Other responses

- `480` — WAFInternalErrorException
- `481` — WAFInvalidAccountException
- `482` — WAFNonexistentItemException
- `483` — WAFReferencedItemException
- `484` — WAFStaleDataException
- `485` — WAFNonEmptyEntityException

---

[API](https://skmtc.net/aws/apis/waf-regional.md) · [All operations](https://skmtc.net/aws/apis/waf-regional/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/waf-regional/revisions/12b830ff94fb/schema)
