Skip to contents

Deletes the specified user on a NocoDB server via its DELETE /api/v1/users/{id_user} API endpoint.

Usage

delete_user(
  id_user,
  origin = pal::pkg_config_val("origin"),
  email = pal::pkg_config_val("email"),
  password = pal::pkg_config_val("password"),
  quiet = FALSE
)

Arguments

id_user

character(1)
NocoDB user identifier as returned by user_id().

origin

character(1)
NocoDB server origin.

email

character(1)
E-mail address of the NocoDB user to authenticate with.

password

character(1)
Password of the NocoDB user to authenticate with.

quiet

logical(1)
Whether or not to suppress printing status output from internal processing.

Value

id_user, invisibly.

Details

This API endpoint does not support authentication via API tokens.

API errors

  • If you encounter a Cannot read properties of undefined (reading 'roles') error, it likely means the specified id_user is invalid (i.e. doesn't exist).

  • If you encounter a userDelete - : Not allowed error, it means the authenticating user doesn't have sufficient privileges (must be "org-level-creator").