Default Restoring for warranty?

I have the tab pro 8.4 rooted with twrp recovery although the screen is defective and bezels peeling away from the screen. Can anyone tell me how to restore the recovery and root to stock so I can return it to amazon?