I removed the wp_redirect() and now I don’t get any headers errors and the delete works. Now I only have the problem with the nonce. It always fails.
I removed the wp_redirect() and now I don’t get any headers errors and the delete works. Now I only have the problem with the nonce. It always fails.