Gaufrette\Adapter\Ftp::delete PHP Method

delete() public method

public delete ( $key )
    public function delete($key)
    {
        $this->ensureDirectoryExists($this->directory, $this->create);
        if ($this->isDirectory($key)) {
            return ftp_rmdir($this->getConnection(), $this->computePath($key));
        }
        return ftp_delete($this->getConnection(), $this->computePath($key));
    }