bug in delete/softdelete foreign tables