# How can you delete all the campaigns that a certain user is in through the API?

**URL:** <https://integration.keap.com/t/how-can-you-delete-all-the-campaigns-that-a-certain-user-is-in-through-the-api/91296>\
**Category:** API Q&A\
**Created:** [August 29, 2023, 8:47am UTC](https://integration.keap.com/t/how-can-you-delete-all-the-campaigns-that-a-certain-user-is-in-through-the-api/91296 "2023-08-29T08:47:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ori\_Levi](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/ori_levi/32/2276_2.png) [@Ori\_Levi](https://integration.keap.com/u/Ori_Levi)\
**Post date:** [August 29, 2023, 8:47am UTC](https://integration.keap.com/t/how-can-you-delete-all-the-campaigns-that-a-certain-user-is-in-through-the-api/91296/1 "2023-08-29T08:47:02Z")

</div>

Hey how’s it going?  
I want to perform an action through the API that will delete all the campaigns that a certain user is in.

The process is basically that when a certain user signs up to me for a paid program, I delete him from all the campaigns he is in so that he does not continue to receive marketing content and add a tag to him that marks him as a paying customer in the paid program.

> **[How to delete campaings form user](https://www.loom.com/share/9e2fcfe5d96f444590a9f1dfcd2ad154?sid=1fb9bf76-3136-4ce3-9ce7-6029f087ac12)**

---

<div class="post-metadata">

**Author:** ![TomScott](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/tomscott/32/67_2.png) [@TomScott](https://integration.keap.com/u/TomScott)\
**Post date:** [September 6, 2023, 6:17pm UTC](https://integration.keap.com/t/how-can-you-delete-all-the-campaigns-that-a-certain-user-is-in-through-the-api/91296/2 "2023-09-06T18:17:05Z")

</div>

Good morning Ori!

Unfortunately I do not believe that we currently have endpoints that provide that functionality, although there is sort of a workaround. If you already know what campaigns and sequences you have available, you could issue a remove call for that contact’s Id from all of them in turn via the REST API: [Keap REST API](https://developer.infusionsoft.com/docs/rest/#tag/Campaign/operation/removeContactFromCampaignSequenceUsingDELETE)

I will make sure to pass on the idea of an endpoint to list the specific sequences a contact is in to the appropriate team.

Thanks,

- Tom Scott  
Keap API Engineer

---

<div class="post-metadata">

**Author:** ![Ori\_Levi](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/ori_levi/32/2276_2.png) [@Ori\_Levi](https://integration.keap.com/u/Ori_Levi)\
**Post date:** [February 1, 2024, 5:26am UTC](https://integration.keap.com/t/how-can-you-delete-all-the-campaigns-that-a-certain-user-is-in-through-the-api/91296/3 "2024-02-01T05:26:04Z")

</div>

so isn’t there any option I can remove a user for an existing campaign he is in??

I don’t understand how it’s possible

it’s so obvious that when a user join to my program I need to remove him form all the others campaigns he is in!
