# Google Sheets - Remove Data

**URL:** <https://community.hubspot.com/t/google-sheets-remove-data/74632>\
**Category:** HubSpot Ideas\
**Tags:** integrations\
**Created:** [February 7, 2023, 1:19pm UTC](https://community.hubspot.com/t/google-sheets-remove-data/74632 "2023-02-07T13:19:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CBirkett](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@CBirkett](https://community.hubspot.com/u/CBirkett)\
**Post date:** [February 7, 2023, 1:19pm UTC](https://community.hubspot.com/t/google-sheets-remove-data/74632/1 "2023-02-07T13:19:40Z")

</div>

So, as deals are updated, removed or change deal stage. There should be a function to remove data from google sheets

---

<div class="post-metadata">

**Author:** ![LizzieNorman1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lizzienorman1/32/57781_2.png) [@LizzieNorman1](https://community.hubspot.com/u/LizzieNorman1)\
**Post date:** [February 9, 2023, 8:58am UTC](https://community.hubspot.com/t/google-sheets-remove-data/74632/2 "2023-02-09T08:58:31Z")

</div>

Yes please this would be so useful!

---

<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:48pm UTC](https://community.hubspot.com/t/google-sheets-remove-data/74632/3 "2024-01-04T23:48:07Z")

</div>

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.

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