import { PineconeClient } from "npm:@pinecone-database/pinecone";
type Pinecone = {
apiKey: string;
environment: string;
};
export async function main(
auth: Pinecone,
index_name: string,
namespace?: string,
) {
const client = new PineconeClient();
await client.init(auth);
const index = client.Index(index_name);
return await index.delete1({
deleteAll: true,
namespace,
});
}
Submitted by admin 521 days ago
import { PineconeClient } from "npm:@pinecone-database/pinecone";
type Pinecone = {
apiKey: string;
environment: string;
};
export async function main(
auth: Pinecone,
index_name: string,
namespace?: string
) {
const client = new PineconeClient();
await client.init(auth);
const index = client.Index(index_name);
return await index.delete1({
deleteAll: true,
namespace
})
}
Submitted by admin 524 days ago
import { Resource } from "https://deno.land/x/windmill@v1.88.1/mod.ts";
import { PineconeClient } from "npm:@pinecone-database/pinecone";
export async function main(
auth: Resource<"pinecone">,
index_name: string,
namespace?: string
) {
const client = new PineconeClient();
await client.init(auth);
const index = client.Index(index_name);
return await index.delete1({
deleteAll: true,
namespace
})
}
Submitted by adam186 638 days ago