deleteAsset
This command enables deletion of a single asset on the PES. The PES expects an asset name (without any regular expressions) as #PCDATA. Assets present in the todolist and reencrypttodolist will never be deleted.
Input Parameters
Fields | Values | Description |
---|---|---|
#PCDATA | A valid file name | The name of the asset |
Output Result
Fields | Values | Description |
---|---|---|
Command | deleteAssets | Echo of the command element name |
Code | 0 -1 1 | 0 = success -1 = DTD Violation 1 = Processing Error |
#PCDATA | A text message | Report how many assests are deleted |
Processing Errors
- "Not a master manager” - MAS connected to a slave manager
- a regular expression error as reported by regcomp.
- "directory ....” - some problem with the assetsdirectory"
- "directory ....” - some problem with the reencryptassetsdirectory"
Examples
Request
<deleteAsset>\.mpg$</deleteAsset>
Response On Success
<Result Command="deleteAsset" Code="0">
<Description>Not a Master Manager</Description>
</Result>
Response On Failure
<Result Command="deleteAsset" Code="1">
<Description>Not a Master Manager</Description>
</Result>