Hello,
When you build a native iOS app, Realm Database is a library not developed by Apple that you can install into your swift iOS projects through the Swift Package Manager or reference the library directly.
When you develop apps with MAUI cross-platform framework, you create a new MAUI project that doesn't have any third-party packages referenced.
In MAUI, i want to remove it because it's no longer needed. Is there any way to do that?
You don't need to do anything, just develop in your new MAUI project. (Or the library as a binding is referenced in your MAUI project, just remove it)
Update
I got it. You just want to remove the database storage, right? If so, it's suggested that you update a new version with native swift. In this version, you could remove all database data, such as delate all entries, all tables and all databases. (I'm not sure if that third-party Realm Database supports to remove database itself).
Another solution
Realm persists data in files saved on device storage. You could try to find the file path, then delate it with MAUI, see MAUI File system helpers.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.