Afterpay owner Block will axe 4000 jobs — 40 per cent of its workforce — with founder Jack Dorsey saying artificial intelligence tools have “changed what it means to build and run a company”.