A company can be struck off voluntarily by its directors, or it can be struck off by the regulatory authority if it has failed to comply with legal obligations, such as filing annual returns or paying taxes. To voluntarily strike off a company, the directors must submit a request to the regulatory body and ensure that the company has no outstanding debts.