lib/account/reset-skin.js
function resetSkin ({accessToken}, profileId) {
  return fetch(`${CORE_API}/user/profile/${profileId}/skin`, {
    method: 'DELETE',
    headers: {
      'user-agent': USER_AGENT,
      'authorization': `Bearer ${accessToken}`
    }
  })
    .then(handleErrors)
    .then(res => null)
}
function resetSkin ({accessToken}, profileId) {
  return fetch(`${CORE_API}/user/profile/${profileId}/skin`, {
    method: 'DELETE',
    headers: {
      'user-agent': USER_AGENT,
      'authorization': `Bearer ${accessToken}`
    }
  })
    .then(handleErrors)
    .then(res => null)
}
function resetSkin ( { accessToken } , profileId ) { return fetch ( ` ${ CORE_API } ${ profileId } ` , { method : 'DELETE' , headers : { 'user-agent' : USER_AGENT , 'authorization' : ` ${ accessToken } ` } } ) . then ( handleErrors ) . then ( res => null ) }
Resets/deletes a logged-in user's in-game skin.

@param {Object} session - object from authentication
@param {string} session.accessToken - valid access token for the user's account
@param {string} profileId - which profile UUID to update the skin of
@returns {Promise} resolves if skin was deleted/reset
@see {@link http://wiki.vg/Mojang_API#Reset_Skin}
Resets / deletes a logged - in user s in - game skin .