public function onAfterDelete()
    {
        // Prepare blank manipulation
        $manipulations = new AssetManipulationList();

        // Add all assets for deletion
        $this->addAssetsFromRecord($manipulations, $this->owner, AssetManipulationList::STATE_DELETED);

        // Whitelist assets that exist in other stages
        $this->addAssetsFromOtherStages($manipulations);

        // Apply visibility rules based on the final manipulation
        $this->processManipulation($manipulations);
    }
public function onAfterDelete()
    {
        // Prepare blank manipulation
        $manipulations = new AssetManipulationList();

        // Add all assets for deletion
        $this->addAssetsFromRecord($manipulations, $this->owner, AssetManipulationList::STATE_DELETED);

        // Whitelist assets that exist in other stages
        $this->addAssetsFromOtherStages($manipulations);

        // Apply visibility rules based on the final manipulation
        $this->processManipulation($manipulations);
    }
public function onAfterDelete ( ) { // Prepare blank manipulation $ manipulations = new AssetManipulationList ( ) ; // Add all assets for deletion $ this -> addAssetsFromRecord ( $ manipulations , $ this -> owner , AssetManipulationList :: STATE_DELETED ) ; // Whitelist assets that exist in other stages $ this -> addAssetsFromOtherStages ( $ manipulations ) ; // Apply visibility rules based on the final manipulation $ this -> processManipulation ( $ manipulations ) ; }
Ensure that deletes records remove their underlying file assets, without affecting
other staged records.
Ensure that deletes records remove their underlying file assets without affecting other staged records .