Kill "C:\*.txt"

Yes that would work providing you have admin rights. You can use wildcards.