const uid = _req.getUID("uid"); const dbPaciente = _db.form("paciente") .where(_db.where("uid").equal(uid)) .first(); if (!dbPaciente) { _header.status(404); _out.json({ insertedData: 0, error: "paciente não encontrado" }); _exec.stop(); } const deletedData = _db.form("paciente") .where(_db.where("uid").equal(uid)) .delete("paciente_convenio"); _out.json({deletedData})