deleteContent method
Delete the local content data for this item.
The operation is executed immediately and does not emit notifications. The return value indicates the outcome and possible failure reasons.
Returns
- GemError.success on success
- GemError.accessDenied if the content is an SDK resource and cannot be removed
- GemError.notFound if the content item does not exist on the device
- GemError.inUse if the item is currently in use and cannot be deleted
Implementation
GemError deleteContent() {
final OperationResult resultString = objectMethod(
pointerId,
'ContentStoreItem',
'deleteContent',
);
return GemErrorExtension.fromCode(resultString['result']);
}