Removing Andrew from the line of succession would require an act of Parliament supported by the 14 Commonwealth countries where King Charles III, his brother, is head of state, including Australia.
Australia backs removing Andrew from royal line of succession - BBC

