TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation User Documents Delete User Documents

Delete User Documents

On this page

GraphQL endpoint: /user

Moves documents to the calling user's trash. They stay recoverable with restoreUserDocuments until the trash is emptied or they are permanently deleted.

Query

mutation ($ids: [ID!]!) {
  deleteUserDocuments(ids: $ids) {
    status
    count
  }
}

Variables

{
  "ids": [
    "00000000-0000-4000-8000-000000000001",
    "00000000-0000-4000-8000-000000000002"
  ]
}

Response

{
  "data": {
    "deleteUserDocuments": {
      "count": 2,
      "status": "OK"
    }
  }
}