Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 2.52 KB

deleting.rst

File metadata and controls

90 lines (61 loc) · 2.52 KB

Deleting

Remove user from system permanently.

C#

accountName : string, required

Indicates which account you are connecting to.

publicKey : string, required

Public identifier of connecting service.

username : string, required

Unique user name for authentication.

id : string, required

Identifies id of user.

NodeJS

var client = MeshyClient.initialize(accountName, publicKey);
var meshyConnection = await client.loginAnonymously(username);

await meshyConnection.usersService.delete(id);
accountName : string, required

Indicates which account you are connecting to.

publicKey : string, required

Public identifier of connecting service.

username : string, required

Unique user name for authentication.

id : string, required

Identifies id of user.

REST

DELETE https://api.meshydb.com/{accountName}/users/{id} HTTP/1.1
Authorization: Bearer {access_token}
accountName : string, required

Indicates which account you are connecting to.

access_token : string, required

Token identifying authorization with MeshyDB requested during Generating Token.

id : string, required

Identifies id of user.

Responses

204 : No Content
  • Identifies if user was deleted.
400 : Bad request
  • User is not able to delete self.
401 : Unauthorized
  • User is not authorized to make call.
403 : Forbidden
  • User has insufficent permission to delete users.
404 : Not Found
  • User is not found.
429 : Too many request
  • You have either hit your API or Database limit. Please review your account.