This is the number of rows that will be deleted, but you are missing the database.commit() before the database.close().
database.commit()
database.close()