We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
200
1 parent 7692bd0 commit abd3f71Copy full SHA for abd3f71
src/drivers/s3.ts
@@ -133,7 +133,7 @@ export default defineDriver((options: S3DriverOptions) => {
133
// https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html
134
const deleteObject = async (key: string) => {
135
return awsFetch(url(key), { method: "DELETE" }).then((r) => {
136
- if (r?.status !== 204) {
+ if (r?.status !== 204 && r?.status !== 200) {
137
throw createError(DRIVER_NAME, `Failed to delete ${key}`);
138
}
139
});
0 commit comments