To publish a workflow, you need to set up both a workflow trigger and a workflow action. Without both elements, you can save the workflow, but you won't be able to publish it.
This action deletes an opportunity linked to the contacts in the workflow.
Choose the specific pipeline from which you want to remove the opportunity.