I want to destroy a specified component

Thank you very much.
After setting IsVald, the components could be safely destroyed and the error log is no longer output.