MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / users_delete

Function users_delete

app/api.py:393–401  ·  view source on GitHub ↗

Removes all users from the system. Returns: Empty response on success, error object otherwise.

()

Source from the content-addressed store, hash-verified

391@api_blueprint.route('/users', methods=['DELETE'])
392@required_auth(auth.Role.ADMIN)
393def users_delete():
394 """Removes all users from the system.
395
396 Returns:
397 Empty response on success, error object otherwise.
398 """
399 auth.delete_all_accounts()
400 session.logout()
401 return json_response.success()
402
403
404@api_blueprint.route('/version', methods=['GET'])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected