@Override
    public void delete(final long id) {
        entityManager.createNativeQuery("DELETE FROM " + OneTimeTokenAccount.TABLE_NAME_SCRATCH_CODES + " WHERE id = :id")
            .setParameter("id", id)
            .executeUpdate();

        entityManager.createQuery("DELETE FROM " + ENTITY_NAME + " r WHERE r.id = :id")
            .setParameter("id", id)
            .executeUpdate();
    }
This is {@link JpaGoogleAuthenticatorTokenCredentialRepository} that stores gauth data into a RDBMS database.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-gauth-jpa/src/main/java/org/apereo/cas/gauth/credential/JpaGoogleAuthenticatorTokenCredentialRepository.java