ClearAsync Method ClearAsync() Clears the map by deleting all entries. Declaration Task ClearAsync() Returns Task A task that will complete when the map has been cleared.