# Hi everyone, i wanna delete multiple recorders

**URL:** <https://community.postman.com/t/hi-everyone-i-wanna-delete-multiple-recorders/43451>\
**Category:** Help Hub\
**Tags:** tests, variables\
**Created:** [February 1, 2023, 3:50pm UTC](https://community.postman.com/t/hi-everyone-i-wanna-delete-multiple-recorders/43451 "2023-02-01T15:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![salma224](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@salma224](https://community.postman.com/u/salma224)\
**Post date:** [February 1, 2023, 3:50pm UTC](https://community.postman.com/t/hi-everyone-i-wanna-delete-multiple-recorders/43451/1 "2023-02-01T15:50:03Z")

</div>

first i get Ids i wanna delete

 ![getids](https://us1.discourse-cdn.com/getpostman/original/3X/8/3/8356d8100b9fab393cc51c16b18d67b9d77a6f65.png)

second what i should do to delete all this data ?  
delete request just can delete on recorder and i wanna delete array have this ids

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 1, 2023, 6:10pm UTC](https://community.postman.com/t/hi-everyone-i-wanna-delete-multiple-recorders/43451/2 "2023-02-01T18:10:06Z")

</div>

There are easier ways to produce an array of ID’s from your response using the JavaScript map function.

```auto
const response = pm.response.json()
let IDs = response.map(item => item.id); // create a new flat array of just the IDs
console.log(IDs);

```

We can’t tell you how to delete the records, as you have provided no information on what the delete request should look like.

I assume you need to send a request to a slightly different end point that surfaces your delete operation using the data from the current record in the array\response.

A quick way to do this is to use the sendRequest() functionality in Postman.

You don’t really need to create an array for this. You are already looping through the response, but instead of pushing the current ID to a new array, use the sendRequest() function to call your DELETE api instead with whatever it needs from the current response to make it work.
