/** * Perform a REST "delete" method at a URL * * @param String $url the URL to "delete" * @param String $type the content type to use (optional) * @param String $charset the charset encoding to use (optional) * @return Array any decoded data returned from the method */ public static function delete($url, $type = NULL, $charset = NULL) { $type = first($type, self::$type); $charset = first($charset, self::$charset); $text = CURL::delete($url, self::headers_for($type, $charset)); return self::decode($type, $text, 'delete'); }