Changes to /api/queries/prune

post/api/queries/prune