ON DELETE CASCADE is not working is in sqlite3 in ios
See http://www.sqlite.org/foreignkeys.html#fk_enable. Note that you need to enable foreign keys for each connection.
Presumably you are creating a new connection to perform the delete
query. Update your code so every time you open a db connection, you set the pragma as needed.