Illegal is not the right word, but it's against FAA regs for a scheduled operation to cancel a flight solely for low loads. But, like others have said, it's usually not an option anyway since the equipment often needs to be in the next city to service a new flight.