def delete_manifestation(node_state, manifestation):
 dataset_id = manifestation.dataset.dataset_id
 node_state = node_state.transform(['manifestations', dataset_id], discard)
 node_state = node_state.transform(['paths', dataset_id], discard)
 node_state = node_state.transform(['devices', UUID(dataset_id)], discard)
 return node_state

def delete_manifestation ( node_state , manifestation ) : dataset_id = manifestation . dataset . dataset_id node_state = node_state . transform ( [ 'manifestations' , dataset_id ] , discard ) node_state = node_state . transform ( [ 'paths' , dataset_id ] , discard ) node_state = node_state . transform ( [ 'devices' , UUID ( dataset_id ) ] , discard ) return node_state
remove all traces of a manifestation from a nodestate .