What the title says. Not sure how to unpublish form the admin api. The store has too many to do it from the Shopify admin interface. Tried multiple times over a couple weeks and it won't process the amount the store has.
I think this post has the info you need.
Kevin_A | Developer Support @ Shopify - Was my reply helpful? Click Like to let me know! - Was your question answered? Mark it as an Accepted Solution - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog