@Override
 public void onDropPartition(DropPartitionEvent partitionEvent) throws MetaException {
   if (partitionEvent != null && partitionEvent.getPartitionIterator() != null) {
     String authzObj =
         partitionEvent.getTable().getDbName() + "." + partitionEvent.getTable().getTableName();
     Iterator<Partition> it = partitionEvent.getPartitionIterator();
     while (it.hasNext()) {
       Partition part = it.next();
       if (part.getSd() != null && part.getSd().getLocation() != null) {
         String path = part.getSd().getLocation();
         for (SentryMetastoreListenerPlugin plugin : sentryPlugins) {
           plugin.removePath(authzObj, path);
         }
       }
     }
   }
 }