# How to remove single item from an array?

**URL:** https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450
**Category:** Ask for Help
**Created:** [April 10, 2024, 8:42am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450 "2024-04-10T08:42:09Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 8:42am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/1 "2024-04-10T08:42:09Z")

</div>

Hi Guys,

I have an array of items consisting of row ID’s

I want to be able to remove only the Selected Items ID from that array only.

How can I do it?

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [April 10, 2024, 9:34am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/2 "2024-04-10T09:34:55Z")

</div>

Use the “Remove Elements” column: Computed \> Experimental \> Array \> Remove Element/Remove Elements.

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 9:44am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/3 "2024-04-10T09:44:20Z")

</div>

Thank you for the reply Himaladin.

This approach will work if the ID for the element you want to remove is in the same table.

In my case

My creators are in separate table.

In the table UI where I want to remove element from Array are in different table.

For reference

I want to remove elements from encircled array

 ![Screenshot 2024-04-10 at 3.13.04 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/0/b05622ef7cf192f2e2e7db16caa5fef7c94c709a.jpeg)

But the elements with these ID’s are stored in different table.

How can I handle this?

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [April 10, 2024, 9:53am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/4 "2024-04-10T09:53:21Z")

</div>

Use lookup to retrieve the RowID to your array page for removal.

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 10:10am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/5 "2024-04-10T10:10:00Z")

</div>

Hi Himaldin,

I am able to do look up on the red coloured circled portion

and retrieve the ID’s of the selected once

 ![Screenshot 2024-04-10 at 3.37.10 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/5/35c421d6f9c53fe933a1410c8a644ff9036fa8c9.jpeg)

When I create the remove element column

In values ill list all the selected one that is the look up column

**WHat should I put in “To Remove”?**

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [April 10, 2024, 10:23am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/6 "2024-04-10T10:23:34Z")

</div>

Is “New Column” the ID you want to subtract from the All Selected Creator column?

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 10:36am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/7 "2024-04-10T10:36:11Z")

</div>

Thank you for the reply Himaldin

No it is not.

How do I get ID of the creator I want to remove?

Lets say I have J, M , and O selected

 ![Screenshot 2024-04-10 at 4.03.12 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/d/ad0821c9f57dd860965586b0c2bf995276736900.jpeg)

IN DB

 ![Screenshot 2024-04-10 at 4.04.06 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/9/499db400441408a59a059242cc9979431b7fec04.png)

Suppose I want to remove J I click on it and select Reject

What should I do? Should I write the ID of the creator somewhere? What if I select multiple?

 ![Screenshot 2024-04-10 at 4.05.17 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/6/061db1d16c46a1248604bcfded1982957ae54191.jpeg)

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [April 10, 2024, 10:47am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/8 "2024-04-10T10:47:12Z")

</div>

Your case is similar to the trebuchet from @Robert_Petitto’s video. Maybe you can watch it again, because the process is quite complicated to explain.

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 10:56am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/9 "2024-04-10T10:56:17Z")

</div>

Oh I followed the same video.

Thing is

I have done it on Creator List once Where I select few and de-select few

This is where I apply first time

 ![Screenshot 2024-04-10 at 4.24.22 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/e/9ea3d50ff2e715fcabaaafeae0237563f8f5e8d1.jpeg)

Add creator will select all Gren coloured ones. When I click on it again it removes from the List

Now I am moving it to another List from here by clicking on Copy to campaign. → I require this flow for the app

It moves the array of creators to another table.

That’s the table I showed where it was showing List of selected creators.

How do I try apply trebuchet method there?

That’s what I am not able to understand.

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 11:16am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/10 "2024-04-10T11:16:30Z")

</div>

I think a layer of complication comes because I applied the trebuchet method on the creators List already

and I am copying the Array to another table in my case.

I am confused as to how to add it again because I am displaying relation column values in the List

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [April 10, 2024, 11:36am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/11 "2024-04-10T11:36:28Z")

</div>

Sorry, I’m not at the computer right now, so I can’t see clearly on my mobile. We’re all on holiday here. 😄  
I just assumed that your “All Selected Creator column” is the same as the items column added in the video. And you need to add the new subtract-items column as in the video. From these two columns, you can link them with your “Accept” or “Reject” button. However, you need a helper table, which is the user table, which I think you already have.  
Hope this helps.

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 12:10pm UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/12 "2024-04-10T12:10:46Z")

</div>

Hi Himaldin,

Oh ok. Happy Eid Festival to you.

Well I got what you said and I follow it.

Problem is I am displaying the resultant of the first trebuchet method in UI, that is my

**All selected creator** and **relCreators** relation shown in screenshot

I am now displaying the result of **relCreators** in a List

and now by principle I should do trebuchet method on this List.

How will it help me remove selected option from **relCreators** in my case?

Thank you for all the help you guys provide.

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 12:23pm UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/13 "2024-04-10T12:23:42Z")

</div>

My confusion is in the second layer of trebuchet method as it is applied on the resultant of the first.

Its a list view

How can I remove creators from that and still display the removed item in same result as first?

Because I am displaying the same result in the list right?

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [April 10, 2024, 12:25pm UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/14 "2024-04-10T12:25:34Z")

</div>

Thank you, I don’t celebrate Eid, but I just enjoy the holiday.

What happens if you connect the relation column with the array column in the user table (I’m still referring to the method in the video), is the result the same?

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 12:40pm UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/15 "2024-04-10T12:40:44Z")

</div>

ok the difference is the resultant multiple files from user table I am setting into an array in campaigns table.

Its done on action.

So all selected creators are set to campaigns table on action.

Now I need to remove one or two creators from this array in campaigns table.

**WHat I thought**

I tried re-doing the trebuchet method again from scratch for campaigns table. Meaning doing the process again for resultant of the first one

But it fails when I reach displaying the result on the list.

Not sure how can I approach this.

\*\*All I need is to be able to just remove one or two selected creators from the trebuchet result list displayed in campaigns table \*\*

 ![Screenshot 2024-04-10 at 6.09.50 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/e/6e654eb268c3fe01838d946e872e4b7275271470.jpeg)

**PS: campaigns table array is got from user table multiple file column**  
Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [April 10, 2024, 1:07pm UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/16 "2024-04-10T13:07:47Z")

</div>

You are close, and I believe you can do it. Try even harder. 💪

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 10, 2024, 1:27pm UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/17 "2024-04-10T13:27:53Z")

</div>

Let me try figuring it out today.

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)
#### Post date: [April 11, 2024, 4:11am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/18 "2024-04-11T04:11:56Z")

</div>

Hi Himaldin, I tried applying Trebutche method on the resultant of first one. I dont think it works for my use case.

Regards,  
Dilip

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [April 11, 2024, 6:18am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/19 "2024-04-11T06:18:57Z")

</div>

Are you trying to subtract the “All selected creators” column from your “relCreators” column? Just to clarify, array columns can only be subtracted from other array columns. Relation columns are just relations and do not contain material or data.  
I see you’ve opened a new topic. Hopefully, someone can assist you. I apologize.

---

<div class="post-metadata">

### Author: ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abdo/32/36540_2.png) [@abdo](https://community.glideapps.com/u/abdo)
#### Post date: [April 11, 2024, 6:48am UTC](https://community.glideapps.com/t/how-to-remove-single-item-from-an-array/72450/20 "2024-04-11T06:48:42Z")

</div>

try something like this

> **[Campaign Creator — Tella](https://www.tella.tv/video/cluuutbrr00r10gl0atj5co3n/view)**
>
> Video recording for work
