[Ide] Fix folder removal issue in the solution pad

Fixes bug #18019 - Deleting a folder does not result in the folder
being deleted