Skip to main content

 Services

Web services from /about to /webhooks

member

/members/{member} [DELETE]

Description

Deletes member with specified ID plus all associated objects and replaces any member references as an author with string values.

Deleting a member is irreversible! If the clear parameter is used, it is no longer possible to even identify the comments, edits, notes and tasks associated with the user.

It performs the following operations:

  1. Remove group memberships
  2. Update the comments, edits, etc. where the member is the author by setting full name and email directly
  3. Remove references to the member where the member changed the status or modified a comment
  4. Unassign tasks to the member
  5. Remove the personal group/project
  6. Remove any OAuth client and persistent token
  7. Delete the profile picture
  8. Remove any lock
  9. Delete the member.

The database transaction is only committed at the end, so if an error occurs, the database isn't updated.

Deleted objects

After deletion all API calls to the following objects return a 404 HTTP error.

ObjectEffect
Group membershipsAll the memberships are deleted permanently, so the member is not listed as a former member
Personal projectPersonal groups content is also deleted
OAuth clientsAs the OAuth client no longer exists, it is no longer usable by client applications
TokensAll tokens are revoked immediately and deleted preventing unauthorized access
Member dataAll member data is deleted, including profile picture, preferences, bookmarks and searches
MemberNo reference to the member

If the member is a moderator on a group, they are removed from that role and the group needs a new moderator.

Updated objects

When the member is deleted the following objects are preserved and remain accessible:

  • Comments,
  • Tasks,
  • Notes,
  • Edits,
  • Versions,
  • Workflows.

References to the member as an author are replaced to only retain the full name and email address of the member, or the full name is set to “Name removed” with no email if the clear parameter is used.

References to the member where they are an assignee (assignedto), modifier (modifiedby), or have changed the status (statuschangedby) are removed.

For example, in the following comment:

{
  "id": 13,
  "contentrole": "Comment",
  "created": "2023-07-10T19:09:43+10:00",
  "title": "Test",
  "author": {
    "id": 123,
    "firstname": "Aaron",
    "surname": "Andrews",
    "username": "aandrews",
    "status": "activated",
    "fullname": "Aaron Andrews",
    "email": "aaron@example.org"
  },
  "modifiedby": {
    "id": 123,
    "firstname": "Aaron",
    "surname": "Andrews",
    "username": "aandrews",
    "status": "activated",
    "fullname": "Aaron Andrews",
    "email": "aaron@example.org",
    "date": "2023-07-11T13:13:24+10:00"
  },
  "content":[{
    "type":"application/xhtml+xml",
    "value":"<p>The author will be removed!</p>"
  }],
  "groups":[{
    "id": 72,
    "name": "sample-doc"
  }]
}

After the member “Aaron Andrews” is deleted, the comment becomes:

{
  "id": 13,
  "contentrole": "Comment",
  "created": "2023-07-10T19:09:43+10:00",
  "title": "Test",
  "author": {
    "fullname": "Aaron Andrews",
    "email": "aaron@example.org"
  },
  "content":[{
    "type":"application/xhtml+xml",
    "value":"<p>The author will be removed!</p>"
  }],
  "groups":[{
    "id": 72,
    "name": "sample-doc"
  }]
}

The modifiedby is no longer returned.

The email is only returned if the emails=all option is used on the API. This option is only available to group managers on selected services.

Parameters

NameDescriptionRequiredTypeDefault
clearWhether to clear the member name and email from comments, edits, etcnobooleanfalse

clear

The clear parameter also removes the name and email address from PageSeeder so that the member is no longer identifiable.

This parameter affects comments, edits, notes, tasks and any object associated with the member. For example, the author of comment written by a member that has been deleted appears as:

"author":{
  "fullname": "Aaron Andrews",
  "email": "aaron@example.org"
}

If the clear parameter is set to true, then it is:

"author":{
  "fullname": "Name removed"
}

Permission

This service requires administrator.

Response

The service returns a <member-delete> element containing a single <member> element corresponding to the member before it is deleted.

<member-delete>
  <member ...> ... </member>
</member-delete>

Or in JSON:

{
  "member": { ... }
}

Error Handling

No specific errors expected for this service.

Created on , last edited on