Для этого необходимо сделать следующий запрос:
delete FROM public."Robots" Where "WorkerId" in (Select "Id" from "Workers" where "Disabled"=true);
delete FROM public."Agents" Where "WorkerId" in (Select "Id" from "Workers" where "Disabled"=true);
delete FROM public."Workers" where "Disabled"=true;