Sirius\Upload\Container\Local::delete PHP Method

delete() public method

Delete the file from the container
public delete ( string $file ) : boolean
$file string
return boolean
    public function delete($file)
    {
        $file = $this->normalizePath($file);
        if (file_exists($this->baseDirectory . $file)) {
            return unlink($this->baseDirectory . $file);
        }
        return true;
    }