Db::deleteWithAllFiles()
\nn\t3::Db()->deleteWithAllFiles($model);
The GDPR version of deletion.
Radical removal of all traces of a data set including the physical SysFiles, linked to the model. To be used with caution, as no relations are checked for the model to be deleted.
\nn\t3::deleteWithAllFiles( $model );
Copied!
@param \TYPO3\CMS\Extbase\DomainObject\AbstractEntity $model
@return void
Source Code
public function deleteWithAllFiles( $model )
{
$tableName = $this->getTableNameForModel( $model );
$uid = $model->getUid();
if (!$tableName || !$uid) return;
\nn\t3::Fal()->deleteForModel( $model );
\nn\t3::Db()->delete($tableName, $uid, true);
}
Copied!