public void deleteMessage(String id, String reservationId, String subscriberName) throws IOException {
        String payload = gson.toJson(new SubscribedMessageOptions(reservationId, subscriberName));
        IronReader reader = client.delete("queues/" + name + "/messages/" + id, payload);
        reader.close();
    }
public void deleteMessage ( String id , String reservationId , String subscriberName ) throws IOException { String payload = gson . toJson ( new SubscribedMessageOptions ( reservationId , subscriberName ) ) ; IronReader reader = client . delete ( "queues/" + name + "/messages/" + id , payload ) ; reader . close ( ) ; }
Deletes a Message from the queue.

@param id The ID of the message to delete.
@param reservationId Reservation Id of the message. Reserved message could not be deleted without reservation Id.

@throws io.iron.ironmq.HTTPException If the IronMQ service returns a status other than 200 OK.
@throws java.io.IOException If there is an error accessing the IronMQ server.