Check if file is empty before deleting it.

If file is empty the delete method will try to delete MEDIA_ROO and raise IOError.