delete_instance is atomic? 
Transaction management is left up to the user. So if you want atomicity, then wrap your operations in the `atomic()` context manager.

http://docs.peewee-orm.com/en/latest/peewee/database.html#managing-transactions Thanks for the answer
is it ok to delete_instance it's not atomic by design or I misunderstood code and documentation?