Deleting a poll removed its slides with a plain deleteAll and relied on ON DELETE CASCADE for slide options and responses. SQLite does not enforce foreign keys by default, so answers of deleted polls stayed in the database. Cascade through the ORM instead and remove the rows left behind earlier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>