weaviate-client
Version:
JS/TS client for Weaviate
17 lines (16 loc) • 469 B
JavaScript
import { CommandBase } from '../validation/commandBase.js';
export default class TenantsDeleter extends CommandBase {
className;
tenants;
constructor(client, className, tenants) {
super(client);
this.className = className;
this.tenants = tenants;
}
validate = () => {
// nothing to validate
};
do = () => {
return this.client.delete(`/schema/${this.className}/tenants`, this.tenants, false);
};
}