code: public void delete(Class clazz, Object identifier) {
          try {
              //noinspection ConstantConditions
              persistenceManager.deleteEntity(persistenceManager.findById(clazz, identifier));
          } catch (InitializationException ignore){}
          catch (Exception e) {
              e.printStackTrace();
          }
  
      }
docs: Delete an entity within the database
  
  @param clazz Entity type
  @param identifier Primary key of the entity