node-js-sample-client/nestsample.js
//delete card(can be deleted only if nobody has it)
delete card(can be deleted only if nobody has it)
delete card ( can be deleted only if nobody has it )
async function delete_card() {
  try {
    await globals.WAX.transaction({
      actions: [
        {
          account: globals.NEST_CONTRACT,
          name: "carddelete",
          authorization: [
            {
              actor: globals.WAX_ACCOUNT,
              permission: "active",
            },
          ],
          data: {
            owner: globals.WAX_ACCOUNT, 
            cardid: 0, 
          },
        },
      ],
    });
  } catch (error) {
    console.log(error);
  }
}
async function delete_card ( ) { try { await globals . WAX . transaction ( { actions : [ { account : globals . NEST_CONTRACT , name : "carddelete" , authorization : [ { actor : globals . WAX_ACCOUNT , permission : "active" , } , ] , data : { owner : globals . WAX_ACCOUNT , cardid : 0 , } , } , ] , } ) ; } catch ( error ) { console . log ( error ) ; } }
delete card(can be deleted only if nobody has it)
delete card ( can be deleted only if nobody has it )
//Your WAX account //Card's id on TABLE cards