Bulk delete for project company-wells

Hey guys!

Is there a way to “bulk” delete “company wells” of a project using “chosenId” or “id”?

I’m wondering if I could provide several “ids” for any of those two fields. Something like:
/?chosenId=in(1111,2222,3333,4444) or /?chosenId=1111,2222,3333,4444

Hi Will , did you ever find a way do delete multiple IDs in one call ? I’m dealing with a similar issue now. Thanks!

Hey @willjosefi, yes, you can delete many wells with a single request. For each well you want to delete you will need to add chosenID=<your-chosen-id> to your query params.

For example - I have a project with ID 610c615ac9e8640e4dfe6b0c and I have two wells I want to remove with the datSource of di the wells chosenIDs are 42227388790000 and 42227388460000 my request would look like this:

/v1/projects/610c615ac9e8640e4dfe6b0c/company-wells?chosenID=42227388790000&chosenID=42227388460000&dataSource=di

The only caveat is that the wells you are removing in the request must have the same dataSource so if a project has wells from multiple data sources that you want to remove then you will have to separate them into different requests.

I hope this helps!

Awesome! worked flawlessly

Thank you

1 Like