Closing your account signs you out everywhere and hides your profile immediately. Thirty days later it is deleted for good, along with your photos, profile and messages.
Until those thirty days are up you can keep the account by logging in with the same number. After that the deletion is permanent and cannot be undone.