public function delete() { if ($this->asset->isAllowed("delete")) { $this->asset->delete(); } else { throw new DAV\Exception\Forbidden(); } }