SwiftData app storage

I created an app using SwiftData to store titles, dates, and images. When creating and deleting data models repeatedly, the app's storage space should remains the same, but for me it steadily accumulate so now its 5GB in the app's settings despite having no data. Why is this happening?

It looks like it is possible to use the underlying core data persistent store option to vacuum the database https://developer.apple.com/documentation/coredata/nssqlitemanualvacuumoption

SwiftData app storage
 
 
Q