# Action to delete files

**URL:** <https://community.mp3tag.de/t/action-to-delete-files/15767>\
**Category:** Support\
**Created:** [May 26, 2014, 7:58pm UTC](https://community.mp3tag.de/t/action-to-delete-files/15767 "2014-05-26T19:58:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)\
**Post date:** [May 26, 2014, 7:58pm UTC](https://community.mp3tag.de/t/action-to-delete-files/15767/1 "2014-05-26T19:58:53Z")

</div>

Is there any Action type that will delete a file?

I need this to delete the temporary files that I create by Export and import by 'Import text file'.

Thanks.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [May 27, 2014, 5:44am UTC](https://community.mp3tag.de/t/action-to-delete-files/15767/2 "2014-05-27T05:44:39Z")

</div>

> [@chrisjj](#):
>
> Is there any Action type that will delete a file? I need this to delete the temporary files that I create by Export and import by 'Import text file'. Thanks.

Similar to the first one export script you can create a second export script, which creates a batch command file of type .bat or .cmd or .vbs or .ps or whatever, which when displayed, that means executed, can remove all the temporary files.

Examples:

{Note: use the same name scheme as in the other export script.}**01: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.RemoveTempFiles.cmd',ANSI)$puts(** 

**02: )'@ECHO OFF'  
03: $loop(%\_path%)  
04: 'ECHO.Removing ... "'%\_path%'"'  
05: 'DEL "'%\_path%'"'  
06: $loopend()  
07: 'PAUSE'  
08: 'DEL "%~0" 1\>NUL 2\>NUL & EXIT'**

 

... or ...

 **01: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.RemoveTempSubFolderTree.cmd',ANSI)$puts(** 

**02: )'@ECHO OFF'  
03: $loop(%\_folderpath%'TEMP',1)  
04: 'ECHO.'  
05: 'ECHO.Removing ... "'%\_folderpath%'TEMP"'  
06: 'ECHO.'  
07: 'RD /S "'%\_folderpath%'TEMP"'  
08: $loopend()  
09: 'ECHO.'  
10: 'PAUSE'  
11: 'DEL "%~0" 1\>NUL 2\>NUL & EXIT'**

 

DD.20140527.0958.CEST, DD.20140527.1145.CEST

---

<div class="post-metadata">

**Author:** ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)\
**Post date:** [May 27, 2014, 7:09am UTC](https://community.mp3tag.de/t/action-to-delete-files/15767/3 "2014-05-27T07:09:45Z")

</div>

Thanks D. Is there a way to get Action type Export to perform that display (execution) of the file?

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [May 27, 2014, 8:07am UTC](https://community.mp3tag.de/t/action-to-delete-files/15767/4 "2014-05-27T08:07:42Z")

</div>

Good question ... and the answer is, no, there is nothing yet to auto-display an export result, which has been created within an action group.

But I would like to have this option in Mp3tag, to trigger deliberately auto-display or auto-execute of the just created export result.

DD.20140527.1207.CEST

---

<div class="post-metadata">

**Author:** ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)\
**Post date:** [May 27, 2014, 8:20am UTC](https://community.mp3tag.de/t/action-to-delete-files/15767/5 "2014-05-27T08:20:50Z")

</div>

TRhanks D

> [@DetlevD](#):
>
> But I would like to have this option in Mp3tag, to trigger deliberately auto-display or auto-execute of the just created export result.

Seconded. Since this is present in File | Export, perhaps it would be easy to add to Actions Export.

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:25pm UTC](https://community.mp3tag.de/t/action-to-delete-files/15767/6 "2026-02-09T12:25:04Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


