Delete asset group

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

[POST]

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 Parameters

Parameter

Description

action=delete

(Required) The POST method must be used.

echo_request={0|1}

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

id={value}

(Required) The ID of the asset group you want to delete.

 

Sample - Delete asset group

API request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -X "POST"

-d "id=395752377"

"https://qualysapi.qualys.com/api/2.0/fo/asset/group/?action=delete"

XML output

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/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