weaviate-client
Version:
JS/TS client for Weaviate
20 lines (19 loc) • 588 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const commandBase_js_1 = require("../validation/commandBase.js");
class TenantsDeleter extends commandBase_js_1.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);
};
}
exports.default = TenantsDeleter;