unmountAndEjectDevice(at:) Attempts to eject the volume mounted at the given path. Declarationfunc unmountAndEjectDevice(at url: URL) throws Parametersurl: The URL of the volume to eject. DiscussionYou can safely call this method from any thread of your app. See AlsoUnmounting a DeviceunmountAndEjectDevice(atPath:)