diff --git a/README.md b/README.md index fd8899f7..53e71794 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ If you are looking to integrate file uploads in browsers, use one of our [fronte - [Usage](#usage) - [Request & Response types](#request--response-types) - [File uploads](#file-uploads) +- [File Delete](#file-delete) - [URL generation](#url-generation) - [Basic URL generation](#basic-url-generation) - [URL generation with transformations](#url-generation-with-transformations) @@ -133,6 +134,20 @@ await client.files.upload({ }); ``` +### File Delete + +```ts +import { ImageKit } from "@imagekit/nodejs"; + +const imagekit = new ImageKit({ + publicKey: "your_public_key", + privateKey: "your_private_key", + urlEndpoint: "your_url_endpoint", +}); + +await imagekit.files.delete("file_id"); +``` + ## URL generation The ImageKit SDK provides a powerful `helper.buildSrc()` method for generating optimized image and video URLs with transformations. Here are examples ranging from simple URLs to complex transformations with overlays and signed URLs.