Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down