USB Library
ERASE_DEVICE

The ERASE_DEVICE (0x04) command erases all of the reprogrammable memory regions indicated by the response to the QUERY_DEVICE command. If it is necessary to erase the protected memory regions, issue the UNLOCK_CONFIG command before the ERASE_DEVICE command. 

The command does not have any data payload or associated response. Typically, the host application would issue a QUERY_DEVICE following the ERASE_DEVICE command, as a means to “poll” for when the erasing process inside the microcontroller has completed (since the firmware doesn’t respond to the QUERY_DEVICE command until the internal erase operation completes). 

Table: ERASE_DEVICE command format  

Packet Byte 
Content 
ERASE_DEVICE (0x04) 
1-63 
(padding) 
MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla