我得到了删除的解决方案。
NSString *str;
if ([type isEqualToString:@"folder"])
{
str = [NSString stringWithFormat:@"https://api.box.com/2.0/folders/%@?recursive=true&access_token=%@",folder_id,str_access_token];
}
else
{
str = [NSString stringWithFormat:@"https://api.box.com/2.0/files/%@?access_token=%@&If-Match=%@",folder_id,str_access_token,etag];
}
ASIFormDataRequest *postParams = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:str]];
[postParams setRequestMethod:@"DELETE"];
[postParams startAsynchronous];
postParams.delegate = self ;
postParams.userInfo = [NSDictionary dictionaryWithObject:@"DeleteFolder" forKey:@"id"];
NSLog(@"Url is ---> %@",postParams.url);
NSLog(@"response string is-----> %@",postParams.responseString);