deleteCascade<T extends DatumEntityInterface> method

CascadeDeleteBuilder<T> deleteCascade<T extends DatumEntityInterface>(
  1. String entityId
)

Creates a fluent API builder for cascade delete operations.

This provides a convenient way to configure and execute cascading delete operations with options like dry-run mode, progress callbacks, cancellation, and timeouts.

Example usage:

final result = await Datum.deleteCascade<Post>('post-123')
  .forUser('user-456')
  .dryRun()
  .execute();

Implementation

CascadeDeleteBuilder<T> deleteCascade<T extends DatumEntityInterface>(String entityId) {
  return Datum.manager<T>().deleteCascade(entityId);
}