@Override
  public void postDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
    TableName tableName) throws IOException {
    Configuration cfg = ctx.getEnvironment().getConfiguration();
    if (!BackupManager.isBackupEnabled(cfg)) {
      LOG.debug("Skipping postDeleteTable hook since backup is disabled");
      return;
    }
    deleteBulkLoads(cfg, tableName, (ignored) -> true);
  }
An Observer to facilitate backup operations
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupMasterObserver.java