How to replace onlyoffice with openoffice

Hello everybody .
I am facing a probleme with onlyoffice , i explain : i would like to replace onlyoffice by openoffice in nextcloud 23.0.2 when i delete apps from store and i install collabora online , i can not access my nextcloud on premise .
is there a safe way to delete openoffice and make collabora online my default document editing server?

I think you can install Nextcloud Office and Collabora Online - Built-in CODE Server.

Have you uninstalled Community Document Server? That is maybe necessary.