Performing a DELETE operation with the REST API

This article provides the steps to remove resource data from Autotask by making a DELETE request to the REST API.

To help you learn how to construct requests to the Autotask REST API, Datto provides a customizable REST API request collection for use with Postman. For more information, refer to Sample requests.

Overview

You can use DELETE requests to remove a resource in Autotask via the API. For example, a DELETE request could remove a designated contact group.

NOTE  You can refer to the Online Help to find root and child access URLs of the entity you wish to query. Refer to Finding resource and child access URLs of REST API entities for more information.

BEFORE YOU BEGIN  Examples in this article may use the webservices[n].autotask.net placeholder. In such instances, substitute [n] for the zone of your user, as described in Autotask API zones and WSDL versionsFind your zone's API URL for the REST API or Autotask API zones and WSDL versionsFind your zone's WSDL file URL for SOAP API version 1.6.

Syntax examples

The following example demonstrates how to delete the ContactGroups resource with the unique ID of 4. Click the drop-down to view the syntax.