Details here:

http://pages.ebay.co.uk/help/account/closing-account.html

You won't be able to do it yet if you've had recent transactions or owe ebay money.