# Deleting SRT files after conversion

**URL:** <https://discussion.mcebuddy2x.com/t/deleting-srt-files-after-conversion/2516>\
**Category:** Subtitles / Closed Captions\
**Created:** [January 7, 2019, 7:22pm UTC](https://discussion.mcebuddy2x.com/t/deleting-srt-files-after-conversion/2516 "2019-01-07T19:22:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim42](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/j/97f17d/32.png) [@Jim42](https://discussion.mcebuddy2x.com/u/Jim42)\
**Post date:** [January 7, 2019, 7:22pm UTC](https://discussion.mcebuddy2x.com/t/deleting-srt-files-after-conversion/2516/1 "2019-01-07T19:22:22Z")

</div>

I have enabled “Extract Subtitles”, which creates the SRT file, but I have also enabled “Add Subtitles”, which I understand puts the subtitles back in the resulting MKV file (for Plex).

But, the SRT file still exists on disk–is there any reason that I can’t or shouldn’t delete it?

---

<div class="post-metadata">

**Author:** ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)\
**Post date:** [January 7, 2019, 10:23pm UTC](https://discussion.mcebuddy2x.com/t/deleting-srt-files-after-conversion/2516/2 "2019-01-07T22:23:04Z")

</div>

You can delete it. MCEBuddy keeps it because some folks like to have both. If you want to delete it automatically write a `PostCustomCommand` in your profile which deletes the SRT file.

See here for more details:

> [@MCEBuddy - Advanced Settings, Commands and Tweaking](https://discussion.mcebuddy2x.com/t/mcebuddy-advanced-settings-commands-and-tweaking/30):
>
> Advanced concepts to use MCEBuddy Refer to the [MCEBuddy Profiles Basics](https://discussion.mcebuddy2x.com/t/27) page to learn about basic Profiles creation NOTE: Advanced Conversion Parameters apply to profiles.conf Do NOT edit mcebuddy.conf. As of v2.3.13 ALL Advanced Configuration Parameters (except FFmpegBackupRemux) in mcebuddy.conf can be accessed through the GUI, Settings → Expert Settings page DO NOT REPLACE THE NEW CONFIGURATION FILES WITH THE OLD FILES AS PARAMETERS IN THE NEW FILES ARE ADDED/UPDATED WITH EACH RELEASE. …

---

<div class="post-metadata">

**Author:** ![NiceMarmut](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@NiceMarmut](https://discussion.mcebuddy2x.com/u/NiceMarmut)\
**Post date:** [January 14, 2019, 12:00am UTC](https://discussion.mcebuddy2x.com/t/deleting-srt-files-after-conversion/2516/3 "2019-01-14T00:00:24Z")

</div>

If you wouldn’t mind, could you go into more detail on what might a postcustomcommand deleting the SRT file look like?

---

<div class="post-metadata">

**Author:** ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)\
**Post date:** [January 14, 2019, 10:36pm UTC](https://discussion.mcebuddy2x.com/t/deleting-srt-files-after-conversion/2516/4 "2019-01-14T22:36:46Z")

</div>

Here’s one that should work, it invokes cmd.exe and passes a delete command to it to delete a SRT file that lies in the destination directory with the same name as the converted file:

```auto
PostCustomCommandPath=C:\Windows\System32\cmd.exe
PostCustomCommandParameters="/c del "%destinationpath%\%convertedfilename%.srt""
PostCustomCommandHangPeriod=60
PostCustomCommandCritical=false
PostCustomCommandUISession=false
PostCustomCommandShowWindow=false
PostCustomCommandExitCodeCheck=false

```
