HF RL Explorer

Task: Recursively Delete a Directory and Its Contents in PHP

Task: Recursively Delete a Directory and Its Contents in PHP: a task in Terminal-Lego-15k (Harbor dataset). Write a PHP script that recursively deletes a directory and all of its contents, including files and subdirectories.

The task

Write a PHP script that recursively deletes a directory and all of its contents, including files and subdirectories.

Part of PrimeIntellect/Terminal-Lego-15k.