> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_files/el_files_deldir.md).

# Delete file/folder

![](/files/DxMBPVONpUH6BMY7Nf4N)

Element deleting a file

![](/files/pBmept8FekrvDC0cc7oY)

Properties

\- Path\*: \[String] Path to a file to be deleted (c:\folder\file.txt)

```
C#
System.IO.File.Delete(@"C:\text.txt");
System.IO.Directory.Delete(@"C:\Dir");

Python
System.IO.File.Delete("C:\\text.txt")
System.IO.Directory.Delete("C:\\Dir")

JavaScript
_lib.System.IO.File.Delete("C:\\text.txt");
_lib.System.IO.Directory.Delete("C:\\Dir");
```
