Delete cache entries

deleteCacheEntries(projectReference: String!, pattern: String!): CacheEntryBulkDeletion!

Requires project.cache.write; API keys also need delete scope.

Arguments

ArgumentTypeRequiredDescription
projectReferenceString!YesProject UUID or slug.
patternString!YesGlob pattern over keys, 1 to 512 characters.

Response

Returns CacheEntryBulkDeletion!. Open the type for its fields and nested types.

FieldTypeDescription
okBoolean!Always true.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation DeleteCacheEntries($projectReference: String!, $pattern: String!) {
  deleteCacheEntries(projectReference: $projectReference, pattern: $pattern) {
    ok
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "pattern": "example"
}