1. MagicESP
  2. Ubuntu Server 22.04
  3. Delete Files By Filename Pattern

Delete Files By Filename Pattern

Recursively delete all the files that has a filename pattern {{ pattern.value }}.

find . -type f -name "{{ pattern.value }}" | xargs rm