in tools/url-checker/create_test_files.py [0:0]
def clean_test_directory():
"""Remove existing test files and directories."""
if os.path.exists(TEST_ROOT):
print(f"Cleaning up existing test directory: {TEST_ROOT}")
shutil.rmtree(TEST_ROOT)
print(f"Removed {TEST_ROOT}")