# Remove DNSSEC security key

This function removes a DNSSEC security key.

Important:

When you disable the DNS role, the system disables this function.

Endpoint: GET /DNSSEC/remove_zone_key
Version: 11.136.0.4
Security: BasicAuth

## Query parameters:

  - `domain` (string, required)
    The security key's domain.
    Example: "example.com"

  - `key_id` (integer, required)
    The security key's ID.
    Example: 1

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "remove_zone_key"

  - `module` (string)
    The name of the module called.
    Example: "DNSSEC"

  - `result` (object)

  - `result.data` (object)
    Example: {"domain":"example.com","key_id":"12","success":1}

  - `result.data.domain` (string)
    The domain for which the system removed a security key.
    Example: "example.com"

  - `result.data.error` (string)
    An error message that describes why the system could not remove the security key.

Note:

The function only displays this return when the success return is a 0 value.
    Example: "Error: Invalid key_id or domain specified: No such key present for domain."

  - `result.data.key_id` (string)
    The security key's ID.
    Example: "12"

  - `result.data.success` (integer)
    Whether the system removed the security key.

* 1 — The system removed the security key.
* 0 — The system failed to remove the security key.
    Enum: 1, 0

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    - 1 - Success
- 0 - Failed: Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


