Enterprise Postgres 17 SP1 Userlog Operation Guide
4.2 Deleting Extensions
On the primary, execute DROP EXTENSION with userlog specified.