public function deleteFolder($folderName, $recursive = false)
    {
        //check whether folder is set or not
        if ($folderName == '')
            throw new Exception('No folder name specified');

        //build URI
        $strURI = $this->strURIFolder . $folderName;
        if ($recursive) {
            $strURI = $strURI . "?recursive=true";
        }

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = json_decode(Utils::processCommand($signedURI, 'DELETE', '', ''));
        if ($responseStream->Code != 200) {
            return FALSE;
        }
        return TRUE;
    }