From ef21f835302d8e9b456c82b502f29e5f35e22649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 7 Mar 2024 19:41:42 +0100 Subject: [PATCH] docs: use del instead of delete --- docs/content/docs/2.storage/3.blob.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/docs/2.storage/3.blob.md b/docs/content/docs/2.storage/3.blob.md index b28e1db5..202fbc3d 100644 --- a/docs/content/docs/2.storage/3.blob.md +++ b/docs/content/docs/2.storage/3.blob.md @@ -149,7 +149,7 @@ Delete a blob with its pathname. export default eventHandler(async (event) => { const { pathname } = getRouterParams(event) - await hubBlob().delete(pathname) + await hubBlob().del(pathname) return sendNoContent(event) }) @@ -158,7 +158,7 @@ export default eventHandler(async (event) => { You can also delete multiple blobs at once by providing an array of pathnames: ```ts -await hubBlob().delete(['images/1.jpg', 'images/2.jpg']) +await hubBlob().del(['images/1.jpg', 'images/2.jpg']) ``` ::note