src/fs/entity/FileEntity.php
public function remove(): bool
    {
        if (@unlink($this->path) === false) {
            $this->setError("failed to delete '{$this->path}");
            return false;
        }
        return true;
    }
public function remove(): bool
    {
        if (@unlink($this->path) === false) {
            $this->setError("failed to delete '{$this->path}");
            return false;
        }
        return true;
    }
Delete the file

@return bool