If you want to remove all files that end with “.txt”, you can use the combination of glob and pathlib as shown above.
Hydra: YAML-Based Config Management Made Simple
Loguru: Configure Professional Logging in a Single Line
Simplifying Type Annotations with MonkeyType