shounakmk219 commented on code in PR #12765: URL: https://github.com/apache/pinot/pull/12765#discussion_r1548240789
########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotDatabaseRestletResource.java: ########## @@ -59,4 +67,91 @@ public class PinotDatabaseRestletResource { public List<String> listDatabaseNames() { return _pinotHelixResourceManager.getDatabaseNames(); } + + @DELETE + @Produces(MediaType.APPLICATION_JSON) + @Path("/databases/{databaseName}") + @Authorize(targetType = TargetType.CLUSTER, action = Actions.Cluster.DELETE_DATABASE) + @ApiOperation(value = "Delete all tables in given database name", notes = "Delete all tables in given database name") + public DeleteDatabaseResponse deleteTablesInDatabase( + @ApiParam(value = "Database name", required = true) @PathParam("databaseName") String databaseName, + @ApiParam(value = "Run in dryRun mode initially to know the list of tables that will be deleted in actual run. " + + "No tables will be deleted when dryRun=true", required = true) + @QueryParam("dryRun") boolean dryRun) { Review Comment: Agree, made the change 👍 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org