<commit_before>.. _api-deletion:

Deleting Resources
==================

Anyone who can edit a resource (editor role) can *delete* it by using
the HTTP DELETE verb.  Deleted resources can not be recovered.

Deleting an existing resource is only possible for updatable
resources, i.e. *not* for Versions, as this would mess up the version
DAG.

The effect of deleting is as follows:

* All child/descendant resources (whose resource path includes the path
  of the deleted ancestor as prefix) are also deleted.
* Deleted resources are no longer listed in parent pools or search<commit_msg>add delete_resource permission<commit_after>.. _api-deletion:

Deleting Resources
==================

Anyone with the *delete_resource* permission can *delete* it by using
the HTTP DELETE verb.  Deleted resources can not be recovered.

Deleting an existing resource is only possible for updatable
resources, i.e. *not* for Versions, as this would mess up the version
DAG.

The effect of deleting is as follows:

* All child/descendant resources (whose resource path includes the path
  of the deleted ancestor as prefix) are also deleted.
* Deleted resources are no longer listed in parent pools or search
{'fraction_non_alphanumeric': 0.07544006705783739, 'fraction_numerical': 0.0, 'mean_word_length': 4.685714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4921972', 'n_tokens_mistral': 320, 'n_tokens_neox': 303, 'n_words': 168}