Skip to content

Commit

Permalink
docs: use del instead of delete
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Mar 7, 2024
1 parent 8c561c8 commit ef21f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/docs/2.storage/3.blob.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand All @@ -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
Expand Down

0 comments on commit ef21f83

Please sign in to comment.