deleteContent method
Delete the associated content.
Operation is executed immediately. No notifications are triggered.
Returns
- GemError.success on success
- GemError.accessDenied if the content is a SDK resource
- GemError.notFound if the content item does not exist
- GemError.inUse if the item is currently in use
Throws
- An exception if it fails.
Implementation
GemError deleteContent() {
final OperationResult resultString = objectMethod(
_pointerId,
'ContentStoreItem',
'deleteContent',
);
return GemErrorExtension.fromCode(resultString['result']);
}