Skip to content
Get started

Delete user

client.users.delete(stringusername, RequestOptionsoptions?): void
DELETE/user/{username}

This can only be done by the logged in user.

ParametersExpand Collapse
username: string

Delete user

import RpTestDocs1 from 'rp-test-docs-1';

const client = new RpTestDocs1({
  apiKey: process.env['PETSTORE_API_KEY'], // This is the default and can be omitted
});

await client.users.delete('username');
Returns Examples