Delete Connected Child Records Along with the Parent Record

This is how you can set up a Pipe using the Tadabase REST API and an Action Link to delete connected Child records and the Parent record.

  • Not yet re-checked
  • Classic builder

Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

Screenshot for “Delete Connected Child Records Along with the Parent Record”

This is how you can set up a Pipe using the Tadabase REST API and an Action Link to delete connected Child records and the Parent record.

Step 1

Download the Tadabase Rest API and plug in your API keys from your app settings. Add the following locations listed below to your pipe calls.

Screenshot for “Delete Connected Child Records Along with the Parent Record”

Pipe Settings

Overview

  • DELETE https://api.tadabase.io/api/v1/data-tables/{tableId}/records/{recordId}

Parameters (Name / Slug)

  • Table ID / tableId
  • Record ID / recordId

Headers (Key / Value)

  • X-Tadabase-App-id / {appId}
  • X-Tadabase-App-Key / {appKey}
  • X-Tadabase-App-Secret / {appSecret}

Response

  • 200 / JSON / type / Response Type

Step 2

Add an action link to your parent table with the following Action Rule.

Screenshot for “Delete Connected Child Records Along with the Parent Record”

Step 3

Navigate to Table Rules of your child data tale and set the following rule.

Screenshot for “Delete Connected Child Records Along with the Parent Record”

Step 4

Now that your table rule is set. Go back to the action rule in the Parent's table of your page and put a second action rule to "update this record" with the following settings.

Screenshot for “Delete Connected Child Records Along with the Parent Record”

Original Community Post:

https://community.tadabase.io/t/delete-connected-child-records-along-with-the-parent-record/1849

Was this page helpful?

Something wrong or missing on this page? Tell us.