# 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.

Source: https://tadabase.com/docs/snippets/delete-connected-child-records-along-with-the-parent-record  
Status: Not yet re-checked. 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”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/ce17c86256db7e86cf45786c2e437bf1ac605d0e.gif)

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”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-09_00-33-57.png)

**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”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-09_01-02-42.png)

**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”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-09_01-11-21.png)

**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”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-09_01-17-26.png)

**Original Community Post:**

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