Deletes an authentication cookie.

Request syntax

DELETE /2019-09-30/auth/cookies/ Token
Authorization: Authorization

Request parameters

Parameter Type Required Description
Token String Yes The token of the authentication cookie.
Authorization String Yes The Basic authorization information. The format is Basic base64(username:password).

For example, the value of the parameter can be Basic Y2h5aW5n********NTY=.

Response syntax

HTTP/1.1 StatusCode
Content-Type: application/json


Response Parameters

Parameter Type Description
StatusCode Number The HTTP status code. If the request is successful, 200 is returned. If the request fails, an error code is returned. For information about error codes, see Status codes.
Payload JSON The returned message.

The format of the returned Payload is as follows:

  "Code": 200,
  "Message": "sucess|reason for failure"


$ curl -i -u admin:admin1234 -k -X DELETE******bbe4

HTTP/1.1 200 OK
Server: openresty/
Date: Thu, 31 Oct 2019 07:57:23 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive