Skip to content

Conversation

@stevensJourney
Copy link
Contributor

Overview

Users have requested for the PowerSync SDK to be able to delete the SQLite files it created.

This adds the ability to delete potentially opened files when calling close on the PowerSync client. (We should only delete the files once we've closed active connections).

This code could have been implemented in the Kotlin SDK and used here. I've opted not to do this for now, since updating the Kotlin SDK currently requires other changes. Implementing this functionality in Swift directly allows for a faster release cycle.

@stevensJourney stevensJourney marked this pull request as ready for review November 6, 2025 09:49
Copy link
Contributor

@simolus3 simolus3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy with these changes 👍

@stevensJourney stevensJourney merged commit 1248391 into main Nov 6, 2025
5 of 6 checks passed
@stevensJourney stevensJourney deleted the delete-database-option branch November 6, 2025 09:53
@stevensJourney stevensJourney mentioned this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants