Delete the files contained in a directory

Dear friends
XOJO

Very grateful for your attention, to resolve the following:

I need your help, to delete all the files contained in the C: \ datostxt directory
from XOJO
What would the code lines be like?

Cordially,

Raul Juarez Pulache

Have you read this page:
http://documentation.xojo.com/api/files/folderitem.html
?

Infinite Thank you
Emile

I have complemented it with the information of the following link, to obtain the solution
https://documentation.xojo.com/index.php/FolderItem.Delete

Raul Juarez Pulache

Xojo is kind of slow for this kind of job.

If you have many files, you may want to shell to

Del C: \\ datostxt\\*.*

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc771049(v=ws.10)?redirectedfrom=MSDN

By the way, if your question is about Windows, you should post in the Target Windows channel instead of General.