Hello Ocr,
if the production order is partially confirmed or done any goods movements then system will not allow you to set the deletion flag
please check the error log through the below path
Goto--> Logs--> For deletion flag
if you want to delete the production order from data base means you have to do the archiving, for this also you should archive the relevant documents against this production order
Suggestion: my suggestion would be to make the TECO for this order i.e. if you make TECO to the production order it will not impact to costing
Regards,
Venkatesh..