Cleaned up Doc#delete to properly emit events, properly remove row from set