Are you using this approach to purge your database?
You might also have to delete the database as it might not clear it our completely without doing that.
Edit:
Not sure how this works with MariaDB, I was successful in cleaning up my internal SQLite DB that way.