def trg_delete(uid, res_type, res_id, cr):
 return WorkflowService.new(cr, uid, res_type, res_id).delete()

def trg_delete ( uid , res_type , res_id , cr ) : return WorkflowService . new ( cr , uid , res_type , res_id ) . delete ( )
delete a workflow instance .