Skip to content
First
Esc
↑↓navigate↵open⌘Jpreview

Delete from members

Deletes one members row for good and returns the row as it was.

Access: Users with the admin role or a higher one may do this.

DELETE/members/{id}
Authorization
wordpress_logged_in_{hash}API key · cookierequired

WordPress's logged-in cookie, as a browser holds it after signing in. A request with it must also carry X-WP-Nonce.

X-WP-NonceAPI key · headerrequired

A WordPress REST nonce (wp_create_nonce('wp_rest')) for the cookie's session.

or
AuthorizationBasic auth · headerrequired

A WordPress user name and one of the user's application passwords.

or
AuthorizationBearer token (JWT) · headerrequired

A First Identity access token.

Path parameters
idintegerrequired

The row's id.

Responses
200

The deleted row.

dataMemberrequired
Show properties
idinteger
emailstring
max length 191
namestring
max length 80
planstring
Allowed:freepro
rolestring
Allowed:guestsubscriberauthoreditoradmin
401

An error, as an RFC 9457 problem document.

typestringrequired

Always about:blank: code names the problem.

titlestringrequired

The problem in a few words.

statusintegerrequired

The HTTP status.

codestringrequired

A stable name for the problem, such as unauthenticated, forbidden, not_found, invalid_input, invalid_query, invalid_json, method_not_allowed, unique_violation or reference_violation.

detailstringrequired

What went wrong, for a person.

pointerstring

A JSON pointer to the field of the request at fault, when there is one.

403

An error, as an RFC 9457 problem document.

typestringrequired

Always about:blank: code names the problem.

titlestringrequired

The problem in a few words.

statusintegerrequired

The HTTP status.

codestringrequired

A stable name for the problem, such as unauthenticated, forbidden, not_found, invalid_input, invalid_query, invalid_json, method_not_allowed, unique_violation or reference_violation.

detailstringrequired

What went wrong, for a person.

pointerstring

A JSON pointer to the field of the request at fault, when there is one.

404

An error, as an RFC 9457 problem document.

typestringrequired

Always about:blank: code names the problem.

titlestringrequired

The problem in a few words.

statusintegerrequired

The HTTP status.

codestringrequired

A stable name for the problem, such as unauthenticated, forbidden, not_found, invalid_input, invalid_query, invalid_json, method_not_allowed, unique_violation or reference_violation.

detailstringrequired

What went wrong, for a person.

pointerstring

A JSON pointer to the field of the request at fault, when there is one.

409

An error, as an RFC 9457 problem document.

typestringrequired

Always about:blank: code names the problem.

titlestringrequired

The problem in a few words.

statusintegerrequired

The HTTP status.

codestringrequired

A stable name for the problem, such as unauthenticated, forbidden, not_found, invalid_input, invalid_query, invalid_json, method_not_allowed, unique_violation or reference_violation.

detailstringrequired

What went wrong, for a person.

pointerstring

A JSON pointer to the field of the request at fault, when there is one.

default

An error, as an RFC 9457 problem document.

typestringrequired

Always about:blank: code names the problem.

titlestringrequired

The problem in a few words.

statusintegerrequired

The HTTP status.

codestringrequired

A stable name for the problem, such as unauthenticated, forbidden, not_found, invalid_input, invalid_query, invalid_json, method_not_allowed, unique_violation or reference_violation.

detailstringrequired

What went wrong, for a person.

pointerstring

A JSON pointer to the field of the request at fault, when there is one.

Try it
Server
Authorization
Parameters
Request
curl -X DELETE 'https://example.space.fast/__first/api/v1/members/0' \
  -H 'X-WP-Nonce: YOUR_API_KEY' \
  -H 'Cookie: wordpress_logged_in_{hash}=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "data": {
    "id": 0,
    "email": "string",
    "name": "string",
    "plan": "free",
    "role": "guest"
  }
}