appdata.destroyNameSpace - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.appdata.destroyNameSpace

API μ„€λͺ…

  • λ°μ΄ν„°λ„€μž„μŠ€νŽ˜μ΄μŠ€ μ‚­μ œ API
  • νŠΉμ • μ΄λ¦„μ˜ λ°μ΄ν„°λ„€μž„μŠ€νŽ˜μ΄μŠ€λ₯Ό μ‚­μ œ
  • λ„€μž„μŠ€νŽ˜μ΄μŠ€ μ‚­μ œμ‹œ λͺ¨λ“  데이터도 ν•¨κ»˜ μ‚­μ œ

API ꡬ쑰

  • function destroyNameSpace(options,callback)
  • options
    • namespace: (String, Mandatory) μ‚­μ œν•  Namespaceλͺ…
  • result_cd
    • 200: 성곡
    • 404: μ‘΄μž¬ν•˜μ§€ μ•ŠλŠ” λ„€μž„μŠ€νŽ˜μ΄μŠ€μž„
    • 500: μ‹œμŠ€ν…œ Error
  • extra
    • null

μ‚¬μš© μ˜ˆμ‹œ

// callback 방식
var options = {};
options.namespace = 'userappprofile';
gigagenie.appdata.destroyNameSpace(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        console.log("Namespace destroy is success.");
    } else {
        console.log("Error");
    }
});
// promise 방식
var options = {};
options.namespace = 'userappprofile';
gigagenie.appdata.destroyNameSpace(options).then(function (extra) {
    console.log("Namespace destroy is success.");
}).catch(function (result_cd, result_msg, extra) {
    console.log("Namespace creation is fail.");
})