Tell us what you are trying to do? Is there a simple way to get the user to confirm that he wants to delete a post? Is there an option in [cred-delete-post] similar to the JS alarm()?
Is there any documentation that you are following?
[cred_delete_post_link] is a deprecated shortcode. The new shortcode we suggest to use is [cred-delete-post] but it will not offer the confirmation JS box.
You should try to uses the attribute <string> redirect with your page/post ID.
For example:
[cred_delete_post_link action='trash' redirect='99999' message='This resource has been deleted' message_show='1' class='cred-refresh-after-delete']Delete This Resource[/cred_delete_post_link]