# Looping logic

**URL:** <https://community.glideapps.com/t/looping-logic/81367>\
**Category:** Ask for Help\
**Created:** [April 15, 2025, 10:19pm UTC](https://community.glideapps.com/t/looping-logic/81367 "2025-04-15T22:19:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mateo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mateo/32/79814_2.png) [@Mateo](https://community.glideapps.com/u/Mateo)\
**Post date:** [April 15, 2025, 10:19pm UTC](https://community.glideapps.com/t/looping-logic/81367/1 "2025-04-15T22:19:26Z")

</div>

Hello,

I’m trying to set up a workflow that triggers every day at 9 AM, and my goal is to delete all the photos from a specific column. I only need this photos for 24 hours.

However, I’m running into an issue — when I try to set the column value, Glide asks me to select a specific row. That doesn’t make sense to me since I’m using a loop, so obviously it’s going to involve multiple rows.

Can anyone help me understand what I might be doing wrong and how to set this up correctly?

Thanks in advance!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/a/4a9c928d429bae82a448af247e42f62581e47b96.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 15, 2025, 10:43pm UTC](https://community.glideapps.com/t/looping-logic/81367/2 "2025-04-15T22:43:18Z")

</div>

You should select “Current Row” - it refers to the current row in the loop.

---

<div class="post-metadata">

**Author:** ![Mateo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mateo/32/79814_2.png) [@Mateo](https://community.glideapps.com/u/Mateo)\
**Post date:** [April 16, 2025, 1:33am UTC](https://community.glideapps.com/t/looping-logic/81367/3 "2025-04-16T01:33:01Z")

</div>

@Darren_Murphy so just to be sure, current row means all the rows in the loop correct?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 16, 2025, 2:03am UTC](https://community.glideapps.com/t/looping-logic/81367/4 "2025-04-16T02:03:21Z")

</div>

No, it means the current row in the loop.  
On each iteration of the loop, the current row will change. So yes, in that sense it means “all rows in the loop”. But the current row only ever refers to a single row.

---

<div class="post-metadata">

**Author:** ![Mateo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mateo/32/79814_2.png) [@Mateo](https://community.glideapps.com/u/Mateo)\
**Post date:** [April 18, 2025, 6:53am UTC](https://community.glideapps.com/t/looping-logic/81367/5 "2025-04-18T06:53:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/d/1d5e931069f2b99290f6059727db1402bd323460.png)

Hi again,

I just tried running this loop, but it’s not working as expected — it’s deleting everything except the **multiple images column**. I’m guessing Glide might be restricting this on purpose?

Is there any way to delete the photos from a multiple image column? I even tried removing them manually from the Data tab, but it doesn’t seem to allow that either.

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 18, 2025, 7:34am UTC](https://community.glideapps.com/t/looping-logic/81367/6 "2025-04-18T07:34:41Z")

</div>

> [@Mateo](#):
>
> Is there any way to delete the photos from a multiple image column? I even tried removing them manually from the Data tab, but it doesn’t seem to allow that either.

A multiple images column is an array type column. To clear it, you need to use a Set Column Values action with an empty array. Use a Make Array column to create an empty array, and then use that.

---

<div class="post-metadata">

**Author:** ![Mateo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mateo/32/79814_2.png) [@Mateo](https://community.glideapps.com/u/Mateo)\
**Post date:** [April 18, 2025, 9:12am UTC](https://community.glideapps.com/t/looping-logic/81367/7 "2025-04-18T09:12:10Z")

</div>

Thank you man it worked youre the best

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 25, 2025, 9:12am UTC](https://community.glideapps.com/t/looping-logic/81367/8 "2025-04-25T09:12:16Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
