I notice that the api for delete page is deprecated
and the new api is :
trashPage(AbstractPage page, DeleteContext deleteContext)
Can anybody send an example how to get the object of "DeleteContext" (https://docs.atlassian.com/atlassian-confluence/6.1.0/com/atlassian/confluence/core/DeleteContext.html)
I have not tried it myself yet, but I had a quick look at the DefaultDeleteContext class and it seems to provide some meta data about the delete operation such as if it is a bulk operation or if notifications should be suppressed.
In that case I think you could just do something like:
Page page = pageManager.getPage(65547);
Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events