Removing a Transactable

Last edit: 

Contributors: 

This guide will help you remove a Transactable.

This guide is part of a series that follows a scenario to demonstrate how to manage Transactables, and this tutorial is the last part of the series. You can find the previous part in the Requirements section.

Requirements

So that you can follow the steps in this tutorial, you should understand the concept of Transactables. You'll also need to follow the series of tutorials about Transactables until the previous tutorial.

Steps

Removing a Transactable is a two-step process:

  1. Create Form Configuration to remove Transactable
  2. Render form

Step 1: Create Form Configuration to remove Transactable

marketplace_builder/form_configurations/destroy_project.liquid


---
name: destroy_project
resource: Transactable
---
{% form method: 'delete' %}
  <input type="submit" value="Delete">
{% endform %}

Step 2: Render form

Render this form similarly to the one from the previous tutorial:


{% include_form 'destroy_project', id: project.id %}

Next steps

Congratulations! You have removed a Transactable, and finished the series of tutorials about managing Transactables. Now you can go on and learn about search:

Questions?

We are always happy to help with any questions you may have. Check out our Help page, or contact us.