# Bulk Delete COS URL Mappings

**URL:** <https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807>\
**Category:** HubSpot Ideas\
**Tags:** design-manager, content\
**Created:** [April 28, 2017, 6:53pm UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807 "2017-04-28T18:53:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [April 28, 2017, 6:53pm UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807/1 "2017-04-28T18:53:38Z")

</div>

Really need to be able to bulk delete redirects.

---

<div class="post-metadata">

**Author:** ![VictoriaGumaer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/victoriagumaer/32/26505_2.png) [@VictoriaGumaer](https://community.hubspot.com/u/VictoriaGumaer)\
**Post date:** [October 24, 2017, 11:20am UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807/2 "2017-10-24T11:20:33Z")

</div>

This is something the product team at HubSpot is actively investigating with our users.

---

<div class="post-metadata">

**Author:** ![jveler\_ecrs](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jveler_ecrs/32/99782_2.png) [@jveler\_ecrs](https://community.hubspot.com/u/jveler_ecrs)\
**Post date:** [May 18, 2018, 7:04pm UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807/3 "2018-05-18T19:04:16Z")

</div>

Sooner than later? Release data planned? This could be REALLY REALLY useful. I just imported about 30 redirects for a particular campaign I’m running and a character in the redirected URL was wrong… had to dlete them all and add back in bulk.

---

<div class="post-metadata">

**Author:** ![Francis\_ZIVVER](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/francis_zivver/32/60590_2.png) [@Francis\_ZIVVER](https://community.hubspot.com/u/Francis_ZIVVER)\
**Post date:** [July 11, 2018, 8:33am UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807/4 "2018-07-11T08:33:47Z")

</div>

Hubspot just made wrong redirects and now i have to manually delete all of them… This is going to take me hour. Why is this a function?!

---

<div class="post-metadata">

**Author:** ![Jan\_Ryklikas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jan_ryklikas/32/38114_2.png) [@Jan\_Ryklikas](https://community.hubspot.com/u/Jan_Ryklikas)\
**Post date:** [August 20, 2018, 9:20am UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807/5 "2018-08-20T09:20:36Z")

</div>

I run into this issue today as well..

I am to lazy to delete everything manually so i created a **VERY CRUDE** workaround by just automating the deletion process,

deleting all redirects and re-importing the right ones back into hubspot.

This code just makes the 3 klicks necessary for the deletion and repeats it every 2 seconds.

```auto
setInterval(function() {
	jQuery('.dropdown-target.settings-icon').first().click();
	jQuery('a[data-action=delete]').first().click();
	jQuery('#hs-fancybox-ok').first().click();
}, 2000)

```

**WARNING:** it doesn’t stop by itself! You have to reload the page to stop the script. But you can run it straight from the javascript console in every browser.

---

<div class="post-metadata">

**Author:** ![FORCINGMETO](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/forcingmeto/32/92090_2.png) [@FORCINGMETO](https://community.hubspot.com/u/FORCINGMETO)\
**Post date:** [February 21, 2019, 4:26am UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807/6 "2019-02-21T04:26:52Z")

</div>

Worked perfectly … yet another issue with HS COS

---

<div class="post-metadata">

**Author:** ![JimB\_Huble](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jimb_huble/32/30311_2.png) [@JimB\_Huble](https://community.hubspot.com/u/JimB_Huble)\
**Post date:** [August 12, 2019, 10:08am UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807/7 "2019-08-12T10:08:43Z")

</div>

If there is some commonality with the redirect URLs you want to delete, you can now delete 10 at a time, by searching for the common string and using the select all tick box and then clicking delete.

Not perfect, but a great start and a timesaver compared to how it was before.

---

<div class="post-metadata">

**Author:** ![VictoriaGumaer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/victoriagumaer/32/26505_2.png) [@VictoriaGumaer](https://community.hubspot.com/u/VictoriaGumaer)\
**Post date:** [September 24, 2019, 2:26pm UTC](https://community.hubspot.com/t/bulk-delete-cos-url-mappings/1807/8 "2019-09-24T14:26:53Z")

</div>

Empty
