@ Override public boolean deleteObject ( GcsFilename filename , long timeoutMillis ) throws IOException { HTTPRequest req = makeRequest ( filename , null , DELETE , timeoutMillis ) ; HTTPResponse resp ; try { resp = urlfetch . fetch ( req ) ; } catch ( IOException e ) { throw createIOException ( new HTTPRequestInfo ( req ) , e ) ; } switch ( resp . getResponseCode ( ) ) { case 204 : return true ; case 404 : return false ; default : throw HttpErrorHandler . error ( new HTTPRequestInfo ( req ) , resp ) ; } }
True if deleted false if not found .