Load($id); $upload_dir = $this->Fields['FilePath']['upload_dir']; $file_path = FULL_PATH . $upload_dir . $this->GetDBField('FilePath'); if ( file_exists($file_path) ) { unlink($file_path); } return parent::Delete($id); } }