public function deleteFile() { if ($this->getFileProperties() === null) { return; } $this->setFileProperties(null); return $this->storage()->deleteDirectory($this->fileDir()); }