:original_name: DeleteFirewall.html
.. _DeleteFirewall:
Delete firewall instance
========================
Function
--------
Delete firewall instance,only postpaid mode is supported.
URI
---
DELETE /v2/{project_id}/firewall/{resource_id}
.. table:: **Table 1** Path Parameters
=========== ========= ====== ===========
Parameter Mandatory Type Description
=========== ========= ====== ===========
project_id Yes String Project ID
resource_id Yes String Resource Id
=========== ========= ====== ===========
Request Parameters
------------------
.. table:: **Table 2** Request header parameters
+--------------+-----------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+==============+===========+========+====================================================================================================================================================+
| X-Auth-Token | Yes | String | User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token. |
+--------------+-----------+--------+----------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
**Status code: 200**
.. table:: **Table 3** Response body parameters
========= ====== ========================
Parameter Type Description
========= ====== ========================
data String Delete Firewall Response
========= ====== ========================
Example Requests
----------------
Delete firewall whose firewall instance id is 08065281-860a-4c98-aeb5-82cf65c44c46c46 and project id is 06217ebc876e427a80a2c05d51264ab1.
.. code-block::
https://{Endpoint}/v2/06217ebc876e427a80a2c05d51264ab1/firewall/08065281-860a-4c98-aeb5-82cf65c44c46
Example Responses
-----------------
**Status code: 200**
Delete Firewall Response
.. code-block::
{
"data" : "56884cd0-cf3c-4cb7-bbeb-59d8722a2671"
}
Status Codes
------------
=========== ========================
Status Code Description
=========== ========================
200 Delete Firewall Response
=========== ========================
Error Codes
-----------
See :ref:`Error Codes `.