When you use a POST-route to deletion an object you can use this function to handle to get a confirmation from the user and send the user to the POST-route.