'Delete a security group from your account.
:type name: string
:param name: The name of the security group to delete.
:type group_id: string
:param group_id: The ID of the security group to delete within
a VPC.
:type dry_run: bool
:param dry_run: Set to True if the operation should not actually run.
:rtype: bool
:return: True if successful.'

def delete_security_group(self, name=None, group_id=None, dry_run=False):

    params = {}
    if (name is not None):
        params['GroupName'] = name
    elif (group_id is not None):
        params['GroupId'] = group_id
    if dry_run:
        params['DryRun'] = 'true'
    return self.get_status('DeleteSecurityGroup', params, verb='POST')
