Click or drag to resize
AbstractInfoProviderTInfo, TProvider, TQueryBulkDelete Method
Bulk deletes info objects based on the given condition.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public void BulkDelete(
	IWhereCondition where,
	BulkDeleteSettings settings = null
)

Parameters

where
Type: CMS.DataEngineIWhereCondition
Where condition for the objects which should be deleted.
settings (Optional)
Type: CMS.DataEngineBulkDeleteSettings
Configuration settings
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when ObjectType cannot be deleted by current provider.
Remarks

Note that the delete process of individual object types within dependencies does not run within transaction. If it fails, some data may be cleared and not rolled back. If you require transaction, wrap the call of this method to CMSTransactionScope.

Method is not executing any customizations for remove dependencies routine (custom code in RemoveObjectDependencies(Boolean, Boolean) or 'removedependencies' query). All customizations must be called prior this method or handled within BulkDelete event.

See Also