def clear_graph(identifier=None):
    """ Clean up a graph by removing it

    :param identifier: Root identifier of the graph
    :return:
    """
    graph = get_graph()
    if identifier:
        graph.destroy(identifier)
    try:
        graph.close()
    except:
        warn("Unable to close the Graph")