Delete Asset Group

POST/api/2.0/fo/asset/group/?action=delete

Delete an asset group present in the user's account. By deleting an asset group any scheduled scans using the asset group will be deactivated.

Click here to see the required permissions.

Input ParametersInput Parameters

Parameter

Required/Optional

Data Type

Description

action=delete

Required String 

The POST method must be used to delete the asset group.

echo_request={0|1}

Optional Integer 

Specify 1 to show (echo) the request’s input parameters (names, values) in the XML output.

id={value}

Required Integer 

The ID of the asset group you want to delete.

Sample - Delete Asset GroupSample - Delete Asset Group

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -X "POST"-d "id=395752377""https://<qualys_base_url>/api/2.0/fo/asset/group/?action=delete"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://<qualys_base_url>/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2018-03-29T15:49:35Z</DATETIME>
    <TEXT>Asset Group Deleted Successfully</TEXT>
    <ITEM_LIST>
      <ITEM>
        <KEY>ID</KEY>
        <VALUE>395752377</VALUE>
      </ITEM>
    </ITEM_LIST>
  </RESPONSE>
</SIMPLE_RETURN>

DTD

<platform API server>/api/2.0/simple_return.dtd