app.logger.error('Administrator %s failed to delete %s %s for application %s for %s - %s',session['name'],ntype,request.args.get('id'),appkey,name,res[1])
flash('{} cannot be removed : {}'.format(ntype.capitalize(),res[1]),'danger')
flash('{} cannot be removed : {}'.format(ntype.capitalize(),res[1]),'danger')