# Delete/Clear Data from Google Sheet via Workflow

**URL:** <https://community.hubspot.com/t/delete-clear-data-from-google-sheet-via-workflow/97149>\
**Category:** HubSpot Ideas\
**Tags:** workflows\
**Created:** [January 4, 2024, 11:01pm UTC](https://community.hubspot.com/t/delete-clear-data-from-google-sheet-via-workflow/97149 "2024-01-04T23:01:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JStamm](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jstamm/32/93635_2.png) [@JStamm](https://community.hubspot.com/u/JStamm)\
**Post date:** [January 4, 2024, 11:01pm UTC](https://community.hubspot.com/t/delete-clear-data-from-google-sheet-via-workflow/97149/1 "2024-01-04T23:01:54Z")

</div>

We are using the Google Sheet integration to populate data automatically on the sheet when the workflow is triggered. We have two separate workflows… One to create the row when the object meets the workflow criteria and one to update the Google sheet data whenever the object has been updated in the past 1 day.

Our specific use case is for Deals. However, there is not a way to remove a row from the Google sheet that I have found. I’d like to add a branch to our Update workflow that if the Deal is Closed Won or Closed Lost, the row that contains the information for that deal is removed from the Google Sheet.

In this case, we’d use the record ID. If the record ID is for a Deal that is closed won or closed lost, delete that row.

The end goal is to have a Google sheet with only Deals that are still open.

---

<div class="post-metadata">

**Author:** ![JStamm](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jstamm/32/93635_2.png) [@JStamm](https://community.hubspot.com/u/JStamm)\
**Post date:** [January 4, 2024, 11:49pm UTC](https://community.hubspot.com/t/delete-clear-data-from-google-sheet-via-workflow/97149/2 "2024-01-04T23:49:09Z")

</div>

UPDATE: I found this.

> <https://gist.github.com/dDondero/285f8fd557c07e07af0e>

I believe once the data is in the Google Sheet, you can write an Apps Script that would remove it based on a value in one of the cells. For example, in my use case, if a Deal is marked as Closed Won or Closed lost, I would want the deal to be removed from the sheet. I am going to try it ASAP.

---

<div class="post-metadata">

**Author:** ![AQureshi2](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@AQureshi2](https://community.hubspot.com/u/AQureshi2)\
**Post date:** [September 10, 2024, 7:47am UTC](https://community.hubspot.com/t/delete-clear-data-from-google-sheet-via-workflow/97149/3 "2024-09-10T07:47:34Z")

</div>

Yes, this has been a very frustrating issue.  
HubSpot must find a way.

---

<div class="post-metadata">

**Author:** ![LauraW2](https://avatars.discourse-cdn.com/v4/letter/l/ee7513/32.png) [@LauraW2](https://community.hubspot.com/u/LauraW2)\
**Post date:** [February 24, 2025, 1:45pm UTC](https://community.hubspot.com/t/delete-clear-data-from-google-sheet-via-workflow/97149/4 "2025-02-24T13:45:24Z")

</div>

We need this!! When a deal merges, the old deals no longer exist in HubSpot, but they can’t be removed from our google sheet

---

<div class="post-metadata">

**Author:** ![LewisChawko](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lewischawko/32/75663_2.png) [@LewisChawko](https://community.hubspot.com/u/LewisChawko)\
**Post date:** [February 26, 2025, 3:33pm UTC](https://community.hubspot.com/t/delete-clear-data-from-google-sheet-via-workflow/97149/5 "2025-02-26T15:33:08Z")

</div>

Got exactly the same issue now - deal is deleted (eg a dupe), we don’t want it on the sheet
