How can I force the Mac app store to re-install an application?
For Xcode, try to go to /Applications and move "Install Xcode" to trash.

I think Xcode is a special case, it doesn't get deleted when you delete it form launchpad.