dbname = get_module_dbname('supplychain') data = params_kw.get("data", "{}") if isinstance(data, str): data = json.loads(data) record_id = data.get("id") if not record_id: return {"status": "error", "message": "Missing record id"} db = DBPools() async with db.sqlorContext(dbname) as sor: await sor.D("supplychain_accounting", {"id": record_id}) return {"status": "ok", "message": "Deleted successfully"}