@Override
    public long deleteAll() {
        return ticketCatalog.findAll()
            .stream()
            .map(this::getTicketCollectionInstanceByMetadata)
            .filter(StringUtils::isNotBlank)
            .map(firestore::collection)
            .mapToLong(collection -> FunctionUtils.doUnchecked(() -> {
                val count = collection.count().get().get().getCount();
                firestore.recursiveDelete(collection).get();
                return count;
            }))
            .sum();
    }
This is {@link GoogleCloudFirestoreTicketRegistry}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-gcp-firestore-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/GoogleCloudFirestoreTicketRegistry.java