W-api icon

W-api

Interaja com W-api WhatsApp API

Instância → Deletar

AI-generated

Summary

Deletes a W-api WhatsApp instance by name by sending an authenticated DELETE request to the W-api server's /instance/delete/{instanceName} endpoint.

Inputs

  • Nome da Instância (instanceName) (required) — Unique name of the instance to delete (e.g. 'minha-loja'). It is inserted into the request URL path. It is evaluated for each input item, so expressions can delete a different instance per item.

Output shape

One output item per input item. Its json field holds the parsed JSON response returned by the W-api server for the delete call.

The response body is whatever the API returns, and the node does not reshape it. The node uses the credential's baseUrl and apiKey (sent as the 'apikey' header). If a request fails and 'Continue On Fail' is enabled, the item is { error: message }. Otherwise the node throws and the workflow stops. The deletion cannot be undone by the node, and there is no confirmation step.

Examples

Example 1: Remove a customer's WhatsApp instance when they cancel their subscription.

Resource: Instância; Operation: Deletar; Nome da Instância: {{ $json.instanceName }}

Example 2: Clean up a temporary test instance at the end of a workflow.

Resource: Instância; Operation: Deletar; Nome da Instância: 'teste-temp'

Links

Discussion