Automatically make an Inventory Item Inactive

Is there any way to AUTOMATICALLY make an inventory item INACTIVE when the Qty is ZERO?

There is already an idea related to this Inventory zero warning

Why would you want an inventory item to automatically become inactive just because the quantity is currently zero? Any decision to inactivate an inventory item is independent of quantity. If an item automatically became inactive, you would be unable to order replacement stock for something you sold out of.