How can I leave a company?

How can I leave a company?