Action: DeleteDOMsByPrefix
Purpose: Deletes all DOMs whose DocumentName property starts with the specified prefix. All nodes, properties, pointers and indexes relating to the matching DOMs are deleted from the M/DB:X database.
This action will list all the DOMs that were deleted
Action-specific name/value pairs:
Parameter Name | Description |
Prefix | All DOMs whose names start with this character sub-string will be deleted. |
Alternatively, the parameters above can be incorporated into a single JSON string and specified using the parameter name JSON, eg:
{Prefix:"web"}
Action=DeleteDOMsByPrefix &MDBAccessKeyId=[your access key id] &Prefix="web" &Signature=[computed signature] &SignatureMethod=HmacSHA256 &SignatureVersion=2 &Timestamp=2009-06-14T13%3A19%3A41 &Version=2009-04-15 &db=mdbx
or:
Action=DeleteDOMsByPrefix &JSON=%7BPrefix%3A%22xpath%22%7D &MDBAccessKeyId=[your access key id] &OutputFormat=JSON &Signature=[computed signature] &SignatureMethod=HmacSHA256 &SignatureVersion=2 &Timestamp=2009-06-14T13%3A19%3A41 &Version=2009-04-15 &db=mdbx
<?xml version='1.0'?> <DeleteDOMsByPrefixResponse xmlns="http://mdbx.mgateway.com/doc/2009-06-05/"> <ClearDOMsByPrefixResult> <DocumentName> webpage </DocumentName> </ClearDOMsByPrefixResult> </DeleteDOMsByPrefixResponse>
A JSON array of DOM names is returned.