Querydocumentdelete viewrefresh F9 Problem

Greetings, I am running into a problem trying to get the view to refresh. I have a calendar view that when I press delete it puts a line through the document then runs Querydocumentdelete. However I am never prompted to delete the document. I have to press F9 to get the deletion prompt but I would like this to be automated so once a user presses delete they are then prompted to delete the document after Querydocumentdelete has run.

I’ve tried using the code below but it won’t do anything.

Call workspace.ViewRefresh

Call workspace.ViewRebuild

Thank you for your time

Subject: Querydocumentdelete viewrefresh F9 Problem

You can programmatically add an action to the view which deletes the document without a prompt. It should be a pretty simple straight forward code available in notes help.