ror and Permissi
…ks each file's extension, and attempts to delete the file if its extension matches one in the list. We use contextlib.suppress
to ignore FileNotFoundError
and PermissionError
exceptions, which might occur if a file is not found or if we don't have permission to delete it.