# Remove Empty Folders When Moving Original Archive File

**URL:** https://discussion.mcebuddy2x.com/t/remove-empty-folders-when-moving-original-archive-file/879
**Category:** New Features
**Tags:** plex
**Created:** [October 28, 2017, 6:07am UTC](https://discussion.mcebuddy2x.com/t/remove-empty-folders-when-moving-original-archive-file/879 "2017-10-28T06:07:24Z")
**Posts on this page:** 1
**Showing post:** 5

<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: [November 10, 2021, 5:01pm UTC](https://discussion.mcebuddy2x.com/t/remove-empty-folders-when-moving-original-archive-file/879/5 "2021-11-10T17:01:29Z")

</div>

MCEBuddy can’t (and shouldn’t) delete any external files by itself. However you can always add a `PostCustomCommand` in your profile which will delete any supporting files and then if the folder is empty MCEBuddy will remove it. [MCEBuddy - Advanced Settings, Commands and Tweaking](https://discussion.mcebuddy2x.com/t/mcebuddy-advanced-settings-commands-and-tweaking/30/1#customcommands)

Here’s an example:

> [@Deleting SRT files after conversion](https://discussion.mcebuddy2x.com/t/deleting-srt-files-after-conversion/2516/4):
>
> 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: PostCustomCommandPath=C:\Windows\System32\cmd.exe PostCustomCommandParameters="/c del "%destinationpath%\%convertedfilename%.srt"" PostCustomCommandHangPeriod=60 PostCustomCommandCritical=false PostCustomCommandUISession=false PostCustomCommandShowWindow=false PostCustomCommandExitCodeCheck=false

---

_[View the full topic](https://discussion.mcebuddy2x.com/t/remove-empty-folders-when-moving-original-archive-file/879)._
