

@gen.engine
def delete_async(self, callback):
    '\n        Removes an item form the database, takes a model as input (non-blocking).\n        '
    from Mojo.ServerHelpers.RunServer import BACKEND_COLLECTION, DATABASE
    if DATABASE:
        if BACKEND_COLLECTION:
            this_collection = BACKEND_COLLECTION(DATABASE, self)
            ret_obj = (yield gen.Task(this_collection.delete, [self]))
            callback(ret_obj)

dataset/ETHPy150Open lonelycode/Mojo/Mojo/ObjectMapper/ModelPrototype.py Model.delete_async/original