RED-6888: Add delete tenant endpoint

review feedback
This commit is contained in:
yhampe 2024-01-26 09:29:21 +01:00
parent 0722b50584
commit d74d4217f8

View File

@ -197,11 +197,6 @@ public class TenantManagementService implements TenantProvider {
TenantResponse tenant = this.getTenant(tenantId);
log.info("Requested to delete tenant for: {}", tenant.getTenantId());
if (tenant.getS3StorageConnection() != null && tenant.getAzureStorageConnection() != null) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Not possible to set both azure and s3 connection, please only specify one");
}
log.info("Deleting tenant: {}", tenant.getTenantId());
log.info("Deleting search index for tenant: {}", tenant.getTenantId());
TenantContext.setTenantId(tenant.getTenantId());