R2 delete objects command does not delete objects

I am attempting to delete objects in R2 via the S3 protocol in the @aws-sdk/client-s3 package, using DeleteObjectsCommand. After I send the command, the response from Cloudflare is:

{"$metadata":{"httpStatusCode":200,"attempts":1,"totalRetryDelay":0},"Deleted": [{"Key":"/file/file.jpg"},{"Key":"/file/file2.jpg"}]}

However, the files aren’t deleted.

Does anyone know what’s going on? I assume if it responds with a status 200 and says “deleted” with the object keys, they should be deleted. But I went on to the dashboard and was able to see and download the files.

This is still an ongoing issue.