MATLAB Arduino Engineering Kit

Following the instructions in the Arduino Engineering Kit Chapter 2

clear a
a=arduino
Updating server code on board MKR1000 (COM4). This may take a few minutes.

After 10 minutes I get

C:\Users\Bright\AppData\Local\Temp\ArduinoServer\MW\ArduinoServer.ino.map could not be removed.
C:\Users\Bright\AppData\Local\Temp\ArduinoServer\MW could not be removed.

Why can I not upload the Arduino server code to the board?

Permission issue? Antivirus issue?

Are you using matlab to compile/upload code? I might understand that part wrong, though. But if you do, your chances of support for that will be minimal on this forum.