Make sure file has content before call route delete