Delete User

Version 4.0.26.0 (latest)

Delete the user with a specific id.

This action cannot be undone. If you want to keep the user's content, we recommend disabling their accounts instead of deleting them.

Deletion will have the following impact:

  • Their reports, Looks and dashboards will be moved to Trash.
  • Any public URLs owned by them will no longer work.
  • Schedules created by the users or that use their content will be deleted.
  • Alerts will continue to run, but will not be visible or editable from the dashboard.

The user cannot delete themselves. The last administrator user cannot be deleted.

Deleting Service Accounts via this endpoint is deprecated and can be blocked in future versions. Please use the dedicated delete_service_account endpoint.

Request

DELETE /users/{user_id}
Datatype
Description
Request
HTTP Request
path
HTTP Path
Expand HTTP Path definition...
user_id
string
Id of user

Response

204: User successfully deleted.

Datatype
Description
(string)
string

400: Bad Request

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

403: Permission Denied

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

404: Not Found

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

429: Too Many Requests

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

Examples

Kotlin

https://github.com/looker-open-source/sdk-codegen/blob/main/kotlin/src/test/TestSmoke.kt

TypeScript

https://github.com/looker-open-source/sdk-codegen/blob/main/packages/sdk-node/test/methods.spec.ts
https://github.com/looker-open-source/sdk-codegen/blob/main/packages/sdk-node/test/methods.spec.ts
https://github.com/looker-open-source/sdk-codegen/blob/main/packages/sdk-node/test/sdk.apispec.ts
https://github.com/looker-open-source/sdk-codegen/blob/main/packages/sdk-node/test/sdk.apispec.ts

Python

https://github.com/looker-open-source/sdk-codegen/blob/main/python/tests/integration/test_methods.py
https://github.com/looker-open-source/sdk-codegen/blob/main/python/tests/integration/test_methods.py
https://github.com/looker-open-source/sdk-codegen/blob/main/python/tests/integration/test_methods.py

Swift

https://github.com/looker-open-source/sdk-codegen/blob/main/swift/looker/Tests/lookerTests/smokeTests.swift