build/tincan.js
function (key, cfg) {
            this.log("dropAgentProfile");
            var requestParams,
                requestCfg,
                requestHeaders;

            requestHeaders = cfg.requestHeaders || {};

            requestParams = {
                profileId: key
            };
            requestCfg = {
                method: "DELETE",
                params: requestParams,
                headers: requestHeaders
            };

            if (this.version === "0.9") {
                requestCfg.url = "actors/profile";
                requestParams.actor = JSON.stringify(cfg.agent.asVersion(this.version));
            }
            else {
                requestCfg.url = "agents/profile";
                requestParams.agent = JSON.stringify(cfg.agent.asVersion(this.version));
            }
            if (typeof cfg.callback !== "undefined") {
                requestCfg.callback = cfg.callback;
            }

            return this.sendRequest(requestCfg);
        }
function (key, cfg) {
            this.log("dropAgentProfile");
            var requestParams,
                requestCfg,
                requestHeaders;

            requestHeaders = cfg.requestHeaders || {};

            requestParams = {
                profileId: key
            };
            requestCfg = {
                method: "DELETE",
                params: requestParams,
                headers: requestHeaders
            };

            if (this.version === "0.9") {
                requestCfg.url = "actors/profile";
                requestParams.actor = JSON.stringify(cfg.agent.asVersion(this.version));
            }
            else {
                requestCfg.url = "agents/profile";
                requestParams.agent = JSON.stringify(cfg.agent.asVersion(this.version));
            }
            if (typeof cfg.callback !== "undefined") {
                requestCfg.callback = cfg.callback;
            }

            return this.sendRequest(requestCfg);
        }
function ( key , cfg ) { this . log ( "dropAgentProfile" ) ; var requestParams , requestCfg , requestHeaders ; requestHeaders = cfg . requestHeaders || { } ; requestParams = { profileId : key } ; requestCfg = { method : "DELETE" , params : requestParams , headers : requestHeaders } ; if ( this . version === "0.9" ) { requestCfg . url = "actors/profile" ; requestParams . actor = JSON . stringify ( cfg . agent . asVersion ( this . version ) ) ; } else { requestCfg . url = "agents/profile" ; requestParams . agent = JSON . stringify ( cfg . agent . asVersion ( this . version ) ) ; } if ( typeof cfg . callback !== "undefined" ) { requestCfg . callback = cfg . callback ; } return this . sendRequest ( requestCfg ) ; }
Drop an agent profile value, when used from a browser sends to the endpoint using the RESTful interface. Full agent profile
delete is not supported by the spec.

@method dropAgentProfile
@param {String|null} key Key of agent profile to delete
@param {Object} cfg Configuration options
@param {TinCan.Agent} cfg.agent Agent in document identifier
@param {Function} [cfg.callback] Callback to execute on completion
@param {Object} [cfg.requestHeaders] Optional object containing additional headers to add to request
Drop an agent profile value when used from a browser sends to the endpoint using the RESTful interface . Full agent profile delete is not supported by the spec .