class PigResource {

	@DELETE
	@Path("/script/{scriptName}")
	@Produces ( {MediaType.TEXT_PLAIN} )
	public Response unregisterScript(@PathParam("scriptName") String scriptName) throws IOException {
		logger.info("Request for deleting script " + scriptName);
		String pathName= PropertyLoader.getInstance().getProperty(Constants.SCRIPTS_PATH) + scriptName;
		PigJobServerImpl.getPigJobServer().unregisterFile(pathName);
		return Response.ok().entity("Script deleted Successfully").build();
	}

}