I have a need to delete app completely, from the iTunesConnect (means, to remove it from sale, and then delete the app, all builds will be removed etc). But to be able later on, to re-create it, and re-upload it to the Store.
Would I be able to use same bundle ID as before? I ask this, cause I don't want to loose previous Firebase analytics.
I never tried this but in IAP identifier once its created then you can not reuse it again after deleting the IAP identifier (personally experienced it). It's permanently stored on the apple server. I think same is for the bundle ID too. You can not reuse it again.
Please read this post too : Can a Bundle ID and SKU be reused in another iTunes Connect account? .
Edit
From apple forum page
You can't delete and/or reuse elsewhere. You can only transfer an app and it's associated bundle ID between paid accounts.
From Apple doc
WARNING: If you remove an app, you will lose ownership of the app name. Removed apps can only be restored if the name is not currently in use by another developer account. In addition, the SKU can’t be reused in the same organization and if you’ve uploaded a build, your bundle ID can’t be reused.