The simplest way is probably to export it as a gedcom file (go to Tree Pages, then Tree Settings). Your friend can then upload the gedcom as a new tree in his name. Once you are sure the new tree has uploaded successfully you can delete the old one in your name.