code/Forms/AssetFormFactory.php
protected function getDeleteAction($record)
    {
        // Delete action
        if ($record && $record->isInDB() && $record->canDelete()) {
            $deleteText = _t('SilverStripe\\AssetAdmin\\Controller\\AssetAdmin.DELETE_BUTTON', 'Delete');
            return FormAction::create('delete', $deleteText)
                ->setIcon('trash-bin');
        }
        return null;
    }
protected function getDeleteAction($record)
    {
        // Delete action
        if ($record && $record->isInDB() && $record->canDelete()) {
            $deleteText = _t('SilverStripe\\AssetAdmin\\Controller\\AssetAdmin.DELETE_BUTTON', 'Delete');
            return FormAction::create('delete', $deleteText)
                ->setIcon('trash-bin');
        }
        return null;
    }
protected function getDeleteAction ( $ record ) { // Delete action if ( $ record && $ record -> isInDB ( ) && $ record -> canDelete ( ) ) { $ deleteText = _t ( 'SilverStripe\\AssetAdmin\\Controller\\AssetAdmin.DELETE_BUTTON' , 'Delete' ) ; return FormAction :: create ( 'delete' , $ deleteText ) -> setIcon ( 'trash-bin' ) ; } return null ; }
Get delete action, if this record is deletable

@param File $record
@return FormAction
Get delete action if this record is deletable