public boolean deleteImportJob ( Integer importJobId ) throws URISyntaxException , HttpException { LOG . debug ( "Deleting the import job " + importJobId ) ; Response httpResponse = HttpUtil . delete ( this . addEndPoint ( importJobId . toString ( ) ) , this . username , this . password ) ; boolean success = httpResponse . getStatusCode ( ) . equals ( HttpStatus . NO_CONTENT ) ; if ( success ) { LOG . debug ( "Successfully deleted the import job " + importJobId ) ; } else { LOG . error ( "Unknown error occured while deleting the import job " + importJobId ) ; } return success ; }
Deletes an importJob .