Delete Domain

POST/api/2.0/fo/asset/domain/

Delete existing domains and related netblocks in the subscription. The domains defined may be used as targets for network scans (maps). Basic HTTP authentication is required. Session based authentication is not supported using this API. Permissions - Manager user role is required.

Input ParametersInput Parameters

Parameter

Required/Optional

Data Type

Description

action={delete}

Required String Specify the delete action to delete an existing domain.
id Required Integer Specify the id of the domain that you want to delete. Pass comma separated ids for bulk delete.

Sample - Delete DomainSample - Delete Domain

API Request

curl --location --request POST'<qualys_base_url>/api/2.0/fo/asset/domain/?action=delete&ids=48793501' \--header 'X-Requested-With: curl' \--header 'Authorization: Basic XXXXXXXXXX' \--data ''

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM
"<qualys_base_url>/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
 <RESPONSE>
 <DATETIME>2023-10-25T09:43:22Z</DATETIME>
 <TEXT>Domain(s) successfully deleted.</TEXT>
 </RESPONSE>
</SIMPLE_RETURN>