It's not illegal to have your MySpace/Facebook/LiveJournal/WoW account/whatever deleted by a friend when you're sitting in the clink.

As long as you had his explicit permission to delete, you're fine.