Skip to main content
DELETE
/
api
/
sessions
/
{session}
Delete the session
curl --request DELETE \
  --url https://{host}/api/sessions/{session} \
  --header 'apikey: <api-key>'
{
  "success": true,
  "message": "Session deleted successfully",
  "session": "my-session"
}

Description

This endpoint completely removes a session from the system, including all its data, configurations and authentication. This action is irreversible. If you want to temporarily disconnect only, use the logout endpoint.

URL Parameters

session
string
required
Unique session ID to be removed
{
  "success": true,
  "message": "Session deleted successfully",
  "session": "my-session"
}

Status Codes

  • 200 - Session deleted successfully
  • 400 - Invalid parameters
  • 404 - Session not found

Usage Example

curl -X DELETE https://api.wappfy.com.br/api/sessions/my-session

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

session
string
required

The session name (instanceName) you want to delete

I