lib/Persistence/Doctrine/Handler/BlockHandler.php
private function deleteBlockCollections(array $blockIds, ?int $status = null): void
    {
        $collectionIds = $this->queryHandler->loadBlockCollectionIds($blockIds, $status);
        foreach ($collectionIds as $collectionId) {
            $this->collectionHandler->deleteCollection($collectionId, $status);
        }

        $this->queryHandler->deleteCollectionReferences($blockIds, $status);
    }
private function deleteBlockCollections(array $blockIds, ?int $status = null): void
    {
        $collectionIds = $this->queryHandler->loadBlockCollectionIds($blockIds, $status);
        foreach ($collectionIds as $collectionId) {
            $this->collectionHandler->deleteCollection($collectionId, $status);
        }

        $this->queryHandler->deleteCollectionReferences($blockIds, $status);
    }
private function deleteBlockCollections ( array $ blockIds , ? int $ status = null ) : void { $ collectionIds = $ this -> queryHandler -> loadBlockCollectionIds ( $ blockIds , $ status ) ; foreach ( $ collectionIds as $ collectionId ) { $ this -> collectionHandler -> deleteCollection ( $ collectionId , $ status ) ; } $ this -> queryHandler -> deleteCollectionReferences ( $ blockIds , $ status ) ; }
Deletes block collections with specified block IDs.

This method does not delete block collections from sub-blocks,
so this should be used only when deleting the entire layout.
Deletes block collections with specified block IDs .