title: Java card APDU delete command gives '69' '85' error code
body: <p>I have a .cap file installed into java card. I am trying to delete that .cap file through APDU command message but its giving '69' '85' Conditions of use not satisfied. PFB steps that i have done to delete .cap file.</p>
  
  <h2>Steps to delete applet from java card:</h2>
  
  <p>I am done with Mutual Authentication Command :</p>
  
  <p>a) Initialize update </p>
  
  <p>b) External Authenicate</p>
  
  <p>and getting '90' '00' as response which means my authentication is done.</p>
  
  <p>Now i am trying to fire delete command to delete .cap file</p>
  
  <p>Delete command</p>
  
  <p>[CMD]80E40080074F050104070205</p>
  
  <p>CLS : 80</p>
  
  <p>INS : E4</p>
  
  <p>P1  : 00</p>
  
  <p>P2  : 80</p>
  
  <p>Lc  : 07</p>
  
  <p>Data: 4F 05 0104070205</p>
  
  <p>4F  : Application or Executable Load File to delete shall be specified using the 
        tag for an AID ('4F')</p>
  
  <p>05  : length of AID</p>
  
  <p>AID : 0104070205</p>
  
  <p>getting response as'69' '85' Conditions of use not satisfied.</p>
  
  <p>Note:-While sending [CMD]80E40080074F050104070205 directly through jSDSCTool, there also i am getting 69' '82' Security status not satisfied.</p>
  
  <p>I am getting [Wrapped CMD] while deleting package through jSDSCTool.</p>
  
  <p>[Wrapped CMD]84E400800F4F0501040702059412B4E480D17991</p>
  
  <p>please explain what is [Wrapped CMD] here and what is last 8 byte of 
  [Wrapped CMD] 84E4....9412B4E480D17991</p>
  
  <p><a href="http://www.win.tue.nl/pinpasjc/docs/Card%20Spec%20v2.1.1%20v0303.pdf" rel="nofollow noreferrer">Reference Link that i have followed to create command message</a></p>