def delete(self, node, category):
        """Removes the entry with matching node and category and returns its value."""
        value = self.contents[(node, category)]
        del self.contents[(node, category)]
        return value