It might be better to move unlink() calls to the media model (just override ```delete()``` ). Also need to check the file exists or catch exceptions from these..