Can delete posts

Im having touble redirecting to the dashboard page after a post is
deleted or not deleted