public void remove(final String uid, final Integer otp) {
        val query = List.of(
            DynamoDbQueryBuilder.builder()
                .key(ColumnNames.USERID.getColumnName())
                .attributeValue(List.of(AttributeValue.builder().s(uid.toLowerCase(Locale.ENGLISH)).build()))
                .operator(ComparisonOperator.EQ)
                .build(),
            DynamoDbQueryBuilder.builder()
                .key(ColumnNames.TOKEN.getColumnName())
                .attributeValue(List.of(AttributeValue.builder().n(String.valueOf(otp)).build()))
                .operator(ComparisonOperator.EQ)
                .build());
        val records = getRecordsByKeys(query);

        records.forEach(record -> {
            val del = DeleteItemRequest.builder()
                .tableName(dynamoDbProperties.getTokenTableName())
                .key(CollectionUtils.wrap(ColumnNames.ID.getColumnName(),
                    AttributeValue.builder().n(String.valueOf(record.getId())).build()))
                .build();
            LOGGER.debug("Submitting delete request [{}] for [{}]", del, record.getId());
            val res = amazonDynamoDBClient.deleteItem(del);
            LOGGER.debug("Delete request came back with result [{}]", res);
        });
    }
Remove.

@param uid the uid
@param otp the otp
support/cas-server-support-gauth-dynamodb/src/main/java/org/apereo/cas/gauth/token/GoogleAuthenticatorDynamoDbTokenRepositoryFacilitator.java