The disconnect is an NEC safety issue. It should be there.
However, disconnecting a VFD under load is not healthy for the drive. Use a disconnect switch with (or a field adder) "early break" contacts. Wire into drive logic to gain a head start for a VFD "controlled shutdown" before the...