You can do it from admin.
Here are the following steps
Login into your shopify store account. Then click on all products.
Then search the product which has zero price and edit that product.
There is a option on the right hand side "Product availability". Click on manage and untick "Online Store"
Then click on done and save.