class PigResource {

	@DELETE
	@Path("/jar/{jarName}")
	@Produces ( {MediaType.TEXT_PLAIN} )
	public Response unregisterJar(@PathParam("jarName") String jarName) throws IOException {
		logger.info("Request for deleting jar " + jarName);
		String pathName= PropertyLoader.getInstance().getProperty(Constants.JARS_PATH) + jarName;
		PigJobServerImpl.getPigJobServer().unregisterFile(pathName);
		return Response.ok().entity("Delete Successful").build();
	}

}