Skip to content

HTTP DELETE

Type: http-delete  ·  Package: HTTP Activities v1.0.0  ·  Output: ZoanHttpResponse

Sends a DELETE request to delete a resource from an API. The URL identifies the resource to be deleted (usually with its id). Does not send body.

Makes the DELETE request to url (with optional headers and authentication) and returns ZoanHttpResponse. Fails if the server responds with an error — see error handling.

ParameterEditorDescription
urlexpressionThe URL of the resource to delete.
ParameterEditorDescription
headersJSONDictionary of extra headers (name → value). See headers.
authorizationJSONAuthentication: bearer, basic or apikey. See authentication.

Returns a ZoanHttpResponse. Many APIs return 204 (no content) when the deletion is successful.

HTTP DELETE
url = = "https://api.erp.com/clientes/" + clienteId
authorization = { "type": "bearer", "token": = credential("api-erp").ToPlainText() }
→ output: resp
Log message = = "Cliente eliminado (status " + resp.StatusCode + ")"