Drop User

POST {{HDB_ENDPOINT}}

Deletes an existing user by username. Learn more about HarperDB users here: https://harperdb.io/docs/security/users-roles/.

Operation is restricted to superuser roles only

  • operation (required) - must always be 'dropuser'
  • username (required) - username assigned to the user.

Request Body

{"operation"=>"drop_user", "username"=>"sgoldberg"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"message":"updated 1 of 1 records","new_attributes":[],"txn_time":1611615114397.988,"update_hashes":["hdb_user"],"skipped_hashes":[]}