diff --git a/lib/ansible/modules/files/file.py b/lib/ansible/modules/files/file.py index 5c05f11952..f440b7f600 100644 --- a/lib/ansible/modules/files/file.py +++ b/lib/ansible/modules/files/file.py @@ -196,6 +196,16 @@ EXAMPLES = r''' owner: foo group: foo +- name: Remove file (delete file) + file: + path: /etc/foo.txt + state: absent + +- name: Recursively remove directory + file: + path: /etc/foo + state: absent + ''' RETURN = r'''