gluon.js
function (role) {
              return Role.destroy({
                where: {
                  code: role,
                  ownerId: req[options.auth.model].id
                },
                limit: 1
              }).catch(function (err) {
                res.database(err)
              });
            }
function (role) {
              return Role.destroy({
                where: {
                  code: role,
                  ownerId: req[options.auth.model].id
                },
                limit: 1
              }).catch(function (err) {
                res.database(err)
              });
            }
function ( role ) { return Role . destroy ( { where : { code : role , ownerId : req [ options . auth . model ] . id } , limit : 1 } ) . catch ( function ( err ) { res . database ( err ) } ) ; }
Removes a role from owner

@param {String} role Which role
@returns {Promise.<Number>}
Removes a role from owner