RED-6888: Add delete tenant endpoint
review feedback
This commit is contained in:
parent
0722b50584
commit
d74d4217f8
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user