Setting up a Manual Purge from MediaStore

Updated on December 9th, 2022

Although Delete Asset can be used to purge a MediaStore, e.g., proxies, it is often more heavyweight than it needs to be, and runs the risk of deleting the whole asset if not carefully configured.

Instead, we can use the Purge from Another MediaStore workflow in order to delete from a specific MediaStore. For this we create another MediaStore, which defines the MediaStore to purge from.

There are two sets of settings for this; for the Transfer Target MediaStore in order to set up the transfer, and for the Purge MediaStore to make sure it can be purged.

This requires Curator 3.1 or later.

Warnings

This will cause an asset to be purged regardless of whether it is safe to do so. Purging HI-RES will not check for archive status, for example; it will just simply delete the hi-res file.

Transfer Target Store

This MediaStore would be configured as the target for a Send To Destination plugin, or at the end of at TransferTo workflow.

Key

Value

Description

PurgeFromMediaStore

[STORETOPURGE]

The name of the MediaStore you wish to purge. This can be a comma seprated list of MediaStores if you wish to purge more than one.

SourceRequired

False

This store does not need a source, although one can be configured if you wish to use transfer chaining.

StoreType

Dynamic

This ensures the Transfer Process does not set metadata.

Workflow

Spawn - Purge from Another MediaStore

Required Workflow.

 MediaStore to be Purged

This configuration will be set on normal MediaStores already if they are configured for purge.

The keys used here do not include specific keys for specific purges; for example, proxy purging has additional keys.

Key

Value

Description

AvailableMetadataKey

[AvailableKey]

The key used to say if this is currently available in this store.

The Purge from Another MediaStore workflow will only purge an asset if this is true or the asset has a value for the PathMetadataKey.

PathMetadataKey

[PathKey]

The key used to store the location of a file that will be purged.

The Purge from Another MediaStore workflow will only purge an asset if this has a value or the asset has the value True for the AvailableMetadataKey.

PurgeProcess

[Specific purge process]

The process to use to purge from this MediaStore; eg Spawn - Purge Proxy Files or Spawn - Delete File From Spinning DiscV2.


Was this article helpful?