we can do this by visiting the Advanced Inventory Tab of your product.
Just set Manage Stock the option to No

If your store contains all digital products then you can set the below option by default, so you don’t need to set it for individual product
Stores > Configuration > Catalog > Inventory > Product Stock Options
Manage Stock to No
