Use

You can mark a connected product template as obsolete if it has status Released or has previously been released.

Once templates have this status, they can no longer be changed. (The Edit button is greyed out.)

See Lifecycle Management: Status Handling.