Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Files__remove Many

Authenticated · x-tenant · Remove unused files from the library and storage. Files still attached to a record are skipped. Requires a signed-in staff user. Needs the `files__File` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONfiles__removeMany(ids: [ID!]!): Boolean!

Authenticated · x-tenant · Remove unused files from the library and storage. Files still attached to a record are skipped. Requires a signed-in staff user. Needs the files__File delete permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

ids*[ID!]!

Returns

files__removeMany*Boolean!
Example Request
mutation Files__removeMany($ids: [ID!]!) {  files__removeMany(ids: $ids)}
Variables
{  "ids": [    "1"  ]}
Example Response
{  "data": {    "files__removeMany": true  }}