def destroy_sink(sink):
 global sinks
 del sinks[sink.sink_id]
 del sink

def destroy_sink ( sink ) : global sinks del sinks [ sink . sink_id ] del sink
free a sink object by eliminating the reference from the global map .