Skip to main content

Batch Helper

DeleteContents​

DeleteContents(contentObjects) → Promise.<Array.<string>>

Delete list of content objects provided

Returns: Array of failed objects, if any or success message

Parameters

NameTypeRequiredDescription
contentObjectsArray.<string>✓

Address/Id of the object

DeleteVersions​

DeleteVersions(
  target,
  startIndex,
  endIndex
) → Promise.<Array.<string>>

Delete versions of target object from startIndex to endIndex

Returns: Array of failed version hashes, if any or success message

Parameters

NameTypeRequiredDescription
targetstring✓

Address/Id of the object

startIndexnumber✓

Starting index (inclusive) for version deletion

endIndexnumber✓

Ending index (inclusive) for version deletion