code: public void removeLocked( MessageLock lockRef ) throws JMSException
      {
      	checkTransactionLock();
      	
      	MessageStore targetStore;
      	if (lockRef.getDeliveryMode() == DeliveryMode.NON_PERSISTENT)
      	    targetStore = volatileStore;
      	else
      	{
      	    targetStore = persistentStore;
      	    if (requiresTransactionalUpdate())
      	    	pendingChanges = true;
      	}
      	
      	synchronized (storeLock)
          {
      		targetStore.delete(lockRef.getHandle());
          }
      }
docs: Remove a locked message from this queue. The message is deleted from the underlying store.