Task: Delete the Contents of a Folder in Python
Task: Delete the Contents of a Folder in Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that deletes all contents (files and subdirectories) of a specified folder while keeping the folder itself intact. The solution should work on Linux systems.
The task
Write a Python script that deletes all contents (files and subdirectories) of a specified folder while keeping the folder itself intact. The solution should work on Linux systems.
Part of PrimeIntellect/Terminal-Lego-15k.