I'm not aware of a way to automatically rearrange the tiles to remove blank spaces after an application deletion. You will need to reconfigure your XML file to reflect the required changes on the layout.
These guides may be helpful:
I hope this answers your question.
--If the reply is helpful, please Upvote and Accept as answer--