Added callback wait instead of immediate return when deleting a flag.