I'm following the official documentation to requesting the REST API endpoint to delete media.
I already have Basic Auth plugin installed in my WP and I'm able to upload media by REST API, but when I try to delete it, I'm getting error 401, "You don't have permission to delete this post".
What should I do to fix this issue?