The file vectors feature is still in beta. Please contact the team at [email protected] if you have any issues.

Delete vectors for a given fileId

Usage

import { PinataSDK } from "pinata";

const pinata = new PinataSDK({
  pinataJwt: process.env.PINATA_JWT!,
  pinataGateway: "example.mypinata.cloud",
});

const update = await pinata.files
  .deleteVectors("52681e41-86f4-407b-8f79-33a7e7e5df68")

Returns

type VectorizeFileResponse = {
	status: boolean;
};

Parameters

fileId

  • Type: string

ID of the target file to delete vectors

const update = await pinata.files
  .deleteVectors("52681e41-86f4-407b-8f79-33a7e7e5df68")