# Convert and delete source file(s)

**URL:** <https://discourse.beets.io/t/convert-and-delete-source-file-s/407>\
**Category:** Help\
**Created:** [July 3, 2018, 1:53pm UTC](https://discourse.beets.io/t/convert-and-delete-source-file-s/407 "2018-07-03T13:53:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jbeets](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jbeets](https://discourse.beets.io/u/jbeets)\
**Post date:** [July 3, 2018, 9:12pm UTC](https://discourse.beets.io/t/convert-and-delete-source-file-s/407/3 "2018-07-03T21:12:43Z")

</div>

I like that, but I should expand a bit more. I’m running the import over my /music directory on a schedule to tag any new music. Sometimes flac files end up next to the converted mp3 files.

I’ve got beets running in a container with the cron job scheduled at the host so I figure tying it to the import process is ‘safer’

```
convert:
    command: ffmpeg -i $source -y -vn -aq 2 $dest && $dest
    extension: mp3
```

---

_[View the full topic](https://discourse.beets.io/t/convert-and-delete-source-file-s/407)._
