Hello there,
I’ve already tried that before I posted here but you can close this topic now, I was able to fix this. See this discussion:
https://stackoverflow.com/questions/78665003/401-error-when-trying-to-delete-image-via-rest-api-woocommerce
Still, I appreciate your response. Thank you.