Hi All,
I want to delete 'n' no of blogpost Is there any optimized method (without loop) which takes less time for bulk deletion?
Hi All,
I want to delete 'n' no of blogpost Is there any optimized method (without loop) which takes less time for bulk deletion?
You can delete the entire blog (which will also delete all of the blog's content). If using REST, you could decrease the HTTP overhead by using the batch endpoint ( Batching REST Endpoint ). Aside from deleting the entire blog, however, each individual post will need to be deleted individually.
Thanks for the reply, the problem is I have hundred or thousand of duplicate blog post which is very painful to delete individually but remain original post. So, i was thinking that I can create an array list or json request and pass into API in one go. Please suggest is there any API or any method which is optimized.
There is not an API that accepts a list of blog post IDs to delete. You'll need to perform that loop yourself.
There is not an API that accepts a list of blog post IDs to delete. You'll need to perform that loop yourself.