This also deletes every warehouse under the distributor. A warehouse cannot exist without a distributor, so the two are deleted together; there is no option to keep them. The delete is refused if any of those warehouses has orders against it. To remove the distributor's warehouses selectively instead, call DELETE v1/Warehouses/{id} for each one and leave the distributor in place.