This members-only tutorial provides the steps to add "Delete" links next to a list of posts on a custom user dashboard which when clicked deletes the corresponding post (gets moved to the Trash).
modify the WP_Query instance's loop to add Delete links for each post
load a js file on the Page which
gets all the delete links
loops through them and adds a click event listener that sends a DELETE request to WordPress REST API for the corresponding post and then remove the parent list item of the clicked Delete link using cookie authentication