Error when deleting screens or projects — anyone else?

Hi everyone, I’ve been running into a recurring issue with deletion in MIT App Inventor. Sometimes I’m trying to delete screens (pages) within a project, and other times I’m trying to delete the entire project itself. In both cases, instead of deleting, I get an error code.

A week ago I worked around it by downloading the project file and renaming the last installed text. Yesterday, I tried again and ended up deleting all projects except for my main checkpoint3, but the error still appeared when I attempted to delete other screens or projects.

Has anyone else experienced this same problem? If so, were you able to resolve it — and how? Any guidance or fixes would be greatly appreciated.

Thanks in advance!

Tell us / show us this error code.

This has been a recurring problem.

See

from

Yes, I have also experienced the same problem. I have a project I cannot generate apk file because I have previously deleted a screen. The screen is deleted but it still apears somewhere in the Java code, maybe. I have also a lot of projects in trash and it’s impossible to delete them.

As far as the trash issue is concerned, please be aware that once the "delete forever" has been applied to a project (already in the trash), you need to exit and reenter AI2 to see that it is really disappeared (non only with a screen refresh).
While about the screen deletion issue, it seems that in your blocks you still have somewhere a reference to it, otherwise: save your app with a different name, then export its .aia, and import it again (with the new name), and see what happens.

If a Project Save As doesn't help, try

Export the aia file

Rename the aia file to a new file name.aia

Import the new aia file under a new Project name.

This avoids perpetuating internal structure problems in the Project.

1 Like

Hi, this issue has been fixed here Fix trash UI glitch on project deletion by yashsrv · Pull Request #3964 · mit-cml/appinventor-sources · GitHub

and I think the team will push the changes in the next release :slight_smile:

Thanks for your highlights, anyway the solution described on github does not work for me (edu server, Win 10, Brave Browser). For this reason I've suggested to exit and reenter AI2, which on my system removes the "deleted" projects. Now is up to the user. :grin: