C#删除微信自定义菜单
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 删除 2 string access_token = "你的token"; 3 string posturl = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=" + access_token; 4 HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(posturl); 5 request.ContentType = "application/x-www-form-urlencoded"; 6 request.Method = "GET"; 7 8 HttpWebResponse myResponse = (HttpWebResponse)request.GetResponse(); 9 StreamReader reader = new StreamReader(myResponse.GetResponseStream(), Encoding.UTF8); 10 string content = reader.ReadToEnd(); 11 12 Response.Write(content);