Delete Scan Template

For API version information, refer to the API Version History section.

V2.0|V3.0

V2.0

POST /api/2.0/fo/report/template/scan/?action=delete

Delete a scan report template in the user's account.

Input ParametersInput Parameters

Parameter

Required/Optional

Data
Type

Description

action=delete

Required

String

Specify action=delete to delete the scan template.

template_id={value}

Required

Integer

The template ID you want to take action on.

Sample - Delete Scan TemplateSample - Delete Scan Template

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With:curl" -d  "action=delete&template_id=8209""https://<qualys_base_url>/api/2.0/fo/report/template/scan/"

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>2017-04-04T10:54:37Z</DATETIME>
    <CODE>Scan Report Template(s) Deleted Successfully [8209]</CODE>
    <TEXT></TEXT>
  </RESPONSE>
</SIMPLE_RETURN>

DTD

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

V3.0

POST /api/3.0/fo/report/template/scan/?action=delete

Delete a scan report template in the user's account.

Input ParametersInput Parameters

Parameter

Required/Optional

Data
Type

Description

action=delete

Required

String

Specify action=delete to delete the scan template.

template_id={value}

Required

Integer

The template ID you want to take action on.

Sample - Delete Scan TemplateSample - Delete Scan Template

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With:curl" -d  "action=delete&template_id=8209""https://<qualys_base_url>/api/3.0/fo/report/template/scan/"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://<qualys_base_url>/api/3.0/simple_return.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2017-04-04T10:54:37Z</DATETIME>
    <CODE>Scan Report Template(s) Deleted Successfully [8209]</CODE>
    <TEXT></TEXT>
  </RESPONSE>
</SIMPLE_RETURN>

DTD

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

API Version History

The following table depicts the information about the different versions of this API along with the status:

API Version API Status Release Date
/api/2.0/fo/report/template/scan/?action=delete To be Deprecated September 2025
/api/3.0/fo/report/template/scan/?action=delete Active

March 2025