Hi@akhtar,
You can remove your files using Ansible. In Ansible you will find the file module which is used to handle the file-related task. To remove files you can see the below code.
- name: Remove old files foo
  file: 
    path: /path/to/foo 
    state: absent