Removes all users from the system. Returns: Empty response on success, error object otherwise.
()
| 391 | @api_blueprint.route('/users', methods=['DELETE']) |
| 392 | @required_auth(auth.Role.ADMIN) |
| 393 | def 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']) |
nothing calls this directly
no outgoing calls
no test coverage detected