Delete() [UserManager]

Delete a user

Description

The Delete() method is used to delete a single user if it exists.

Package Details

Interface

IUserManager

Syntax

await UserManager.Delete(int id)

Returns

Task<int>

API

DELETE
/api/v1/users/{id}

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

id

The user Id to be removed

Path

Returns

On success, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

int id = 2; await _userManager.Delete(id);