文章 Delete User REST 端点

URLs

DELETE api/v1/users/{id}.xml (or .json)

DELETE a user by user id.

DELETE api/v1/users/{username}.xml (or .json)

DELETE a user by username.

请求参数

名称

类型

描述

必需

默认值

选项

Id

int?

Either Id or Username is required.

Username

string

Either Id or Username is required.

ReassignedUserId

int?

Reassign the deleted user's content to the user with this Id. If not specified, content will be reassigned to the anonymous user.

ReassignedUsername

string

Reassign the deleted user's content to the user with this username. If not specified, content will be reassigned to the anonymous user.

DeleteAllContent

bool

If DeleteAllContent is set to true, ReassignUserId and ReassignUsername are ignored. User's content and related content will be deleted. (For example, if user has authored a blog post, that post and all related comments, likes, bookmarks, etc will be removed.)