public void remove(String queue, Object id) throws IOException
{
ByteArrayOutputStream baos = new ByteArrayOutputStream(256);
baos.write(DELETE_BYTE);
baos.write(((UUID)id).asByteArray());
Packet packet = new ByteArrayPacket(baos.toByteArray());
RecordLocation loc = journal.write(packet, false);
synchronized (markLock) {
unusedMarks.add(loc);
loc = (RecordLocation)marks.remove(id);
if (loc != null) {