Skip to content

Deleting Multiple Objects via REST API #7477

Answered by drmsoffall
CrazySliva asked this question in Q&A
Discussion options

You must be logged in to vote

If you really want to do this, you probably need to transform the JSON data with a tool like jq. For example:

jq "[.results[] | {id}]" temp.json > temp_id.json

Then use the transformed data as the input to your bulk delete, rather than the original output.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CrazySliva
Comment options

Answer selected by CrazySliva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants