Delete cache entry

deleteCacheEntry(projectReference: String!, key: String!): CacheEntryDeletion!

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

Arguments

ArgumentTypeRequiredDescription
projectReferenceString!YesProject UUID or slug.
keyString!YesCache key, 1 to 512 characters.

Response

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

FieldTypeDescription
okBoolean!Always true, whether or not an entry existed.

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

Example

graphql
mutation DeleteCacheEntry($projectReference: String!, $key: String!) {
  deleteCacheEntry(projectReference: $projectReference, key: $key) {
    ok
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "key": "example"
}