Persisting SwiftData After App Deletion

Hello,

I've encountered an issue where SwiftData remains in the /Users/(username)/Library/Containers/MyApp directory even after my MacOS app has been deleted. This behavior is not what I expected.

Has anyone else faced this issue?

Also, I'm wondering if there is a delay in the deletion process that might account for this. is there a known time lag before everything is cleared out?

Thanks.

This thread might be helpful: https://developer.apple.com/forums/thread/653690

Persisting SwiftData After App Deletion
 
 
Q