https://de.mathworks.com/help/ecoder/armcortexa/ref/matlabshared.targetsdk.hardware.deleteserialinterface.html
matlabshared.targetsdk.Hardware.deleteSerialInterface - Delete serial interface from hardware -...
This MATLAB function deletes the SerialInterface object with the Name property set to the string interfaceName from the Hardware object, h.
serial interfacehardwaredelete