public static void deleteSitemap(WebmasterToolsService myService,
String siteUrl, String sitemapUrl) throws IOException, ServiceException {
String siteId = URLEncoder.encode(siteUrl, "UTF-8");
String sitemapId = URLEncoder.encode(sitemapUrl, "UTF-8");
URL feedUrl = new URL(getSitemapsFeedUrl(siteId) + sitemapId);
SitemapsRegularEntry entry
= myService.getEntry(feedUrl, SitemapsRegularEntry.class);
System.out.println("Now deleting Sitemap: " + sitemapUrl);
entry.delete();
}