<commit_before># delete-docker-registry-image

## Install

    curl https://raw.githubusercontent.com/burnettk/delete-docker-registry-image/master/delete_docker_registry_image | sudo tee /usr/local/bin/delete_docker_registry_image >/dev/null
    sudo chmod a+x /usr/local/bin/delete_docker_registry_image

## Run

    REGISTRY_DATA_DIR=/opt/registry_data/docker/registry/v2 delete_docker_registry_image --image testrepo/awesomeimage --dry-run<commit_msg>readme update<commit_after># delete-docker-registry-image

## Install

    curl https://raw.githubusercontent.com/burnettk/delete-docker-registry-image/master/delete_docker_registry_image | sudo tee /usr/local/bin/delete_docker_registry_image >/dev/null
    sudo chmod a+x /usr/local/bin/delete_docker_registry_image

## Run

Optionally, set up your data directory via an environment variable:

    export REGISTRY_DATA_DIR=/opt/registry_data/docker/registry/v2

You can also just edit the script where this variable is set to make it work for your setup.

Almost delete an image:

    delete_docker_registry_image --image testrepo/awesomeimage --dry-run

Actually delete an image (remember to shut down your registry first):

    delete_docker_registry_image --image testrepo/awesomeimage
{'fraction_non_alphanumeric': 0.08527755430410297, 'fraction_numerical': 0.0016090104585679806, 'mean_word_length': 4.867924528301887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2510951', 'n_tokens_mistral': 404, 'n_tokens_neox': 367, 'n_words': 86}