dictionary function to remove all elements code example Example: remove all elements from dictionary python dict_name.clear()