versions/v2/business.py
def delete_business(current_user, businessId):
    """Deletes a business
    confirms if current user is owner of business
    """
    business = get_in_module('business', businessId)
    name = business.name
    business.delete()

    if not existing_module('business', name):
        return jsonify({'success': 'Business Deleted'}), 200

    return jsonify({'warning': 'Business Not Deleted'}), 400
Deletes a business
    confirms if current user is owner of business
    
Deletes a business
confirms if current user is owner of business
Deletes a business confirms if current user is owner of business
def delete_business(current_user, businessId):
    business = get_in_module('business', businessId)
    name = business.name
    business.delete()
    if not existing_module('business', name):
        return jsonify({'success': 'Business Deleted'}), 200
    return jsonify({'warning': 'Business Not Deleted'}), 400
def delete_business ( current_user , businessId ) : business = get_in_module ( 'business' , businessId ) name = business . name business . delete ( ) if not existing_module ( 'business' , name ) : return jsonify ( { 'success' : 'Business Deleted' } ) , 200 return jsonify ( { 'warning' : 'Business Not Deleted' } ) , 400
Deletes a business
confirms if current user is owner of business
Deletes a business confirms if current user is owner of business
"""Deletes a business
    confirms if current user is owner of business
    """
current_user
businessId