public function beforeDelete(StaplerableInterface $instance) { $this->instance = $instance; if (!$this->preserve_files) { $this->clear(); } }