Go to Products > All Products and select the variable product you want to edit.
At the top right of the edit product page, you’ll find the Publish section.
Select the radio button/checkbox next to Hidden and then click the gray OK button. https://ibb.co/4PgJrhy
Your variable parent product will now be hidden from the catalog. However, it still will be visible as a single product page.