Skip to main content
Node.js
import { PeriskopeApi } from '@periskope/periskope-client';

const client = new PeriskopeApi({
  authToken: 'YOUR_API_KEY',
});

async function deleteMember() {
  const response = await client.members.delete({
    id: 'test@example.com'
  });

  console.log(response);
}

deleteMember();
{
  "success": true,
  "message": "Member test@example.com deleted successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<email>
required

Email address of the member to delete

Example:

"test@example.com"

Response

200 - application/json

200 OK

success
boolean

Whether the member was deleted successfully

Example:

true

message
string

Email address of the member to delete

Example:

"Member test@example.com deleted successfully"