private int delete ( String urlS ) throws IOException { URL url = new URL ( urlS ) ; HttpURLConnection conn = prepareAuthorizedConnection ( url ) ; conn . setRequestMethod ( "DELETE" ) ; conn . connect ( ) ; return conn . getResponseCode ( ) ; }
Sends DELETE HTTP request to provided URL . Request is authorized using Google API key .