code: @Override
      public void remove(Object handle) throws IOException {
          if (!(handle instanceof File)) {
              throw new IllegalArgumentException("Expected File, but was " + handle.getClass());
          }
  
          File eventFile = (File) handle;
          if (eventFile.exists() && eventFile.isFile()) {
              if (eventFile.delete()) {
                  KeenLogging.log(String.format(Locale.US, "Successfully deleted file: %s",
                          eventFile.getAbsolutePath()));
              } else {
                  KeenLogging.log(String.format(Locale.US,
                          "CRITICAL ERROR: Could not remove event at %s",
                          eventFile.getAbsolutePath()));
              }
          } else {
              KeenLogging.log(String.format(Locale.US, "WARNING: no event found at %s",
                      eventFile.getAbsolutePath()));
          }
      }
docs: {@inheritDoc}