i want to clear the complete storage in userDefault without using Remove Object method avaliable in userDefaults
this is func i wrote but not sure is this the write way of doing it.
public func cleanCompleteStorage(){
let domain = Bundle.module.bundleIdentifier
UserDefaults.standard.removePersistentDomain(forName: domain)
UserDefaults.standard.synchronize()
}