public function delete()
{
unlink($this->getStoreageFile());
// remove binary files
$files = glob(PIMCORE_RECYCLEBIN_DIRECTORY . "/" . $this->getId() . "_*");
if (is_array($files)) {
foreach ($files as $file) {
unlink($file);
}
}
$this->getDao()->delete();
}