This varies in the EU IIRC for example here in Sweden if you plan to fire more than 5 people you need to alert the public employment agency and employees 2 months in advance and the union which the company has collective bargaining agreements with. There is usually a negotiation between the union and the company on the forms of the fireing.