Added implementation for removeInternalFile