You can delete a production code that has no linked costs or invoices.
Go to Prod. codes
Hover over the prod. code and click Edit
Click Delete at the bottom of the form
If the prod. code already has invoices or costs linked to it, you must first move them to another prod. code.

