send file name on response:
return response.header("filetodelete", FILE_OUT_PUT).build();
after that you can send delete restful method
@POST
@Path("delete/{file}")
@Produces(MediaType.TEXT_PLAIN)
public void delete(@PathParam("file") String file) {
File delete = new File(file);
delete.delete();
}