code: public static boolean executeDeleteOperation(final ConnectionFactory connectionFactory, final LdapEntry entry) {
          try (val connection = createConnection(connectionFactory)) {
              val delete = new DeleteOperation(connection);
              val request = new DeleteRequest(entry.getDn());
              request.setReferralHandler(new DeleteReferralHandler());
              val res = delete.execute(request);
              return res.getResultCode() == ResultCode.SUCCESS;
          } catch (final LdapException e) {
              LOGGER.error(e.getMessage(), e);
          }
          return false;
      }
docs: Execute delete operation boolean.
  
  @param connectionFactory the connection factory
  @param entry             the entry
  @return true/false