When behaving correctly, aptoide always removes the .myapp file no matter if user installs the app or adds the repo. So rename shouldnt fail.