'Deletes a security group.'

def delete_security_group(self):

    bindings = self.bindings
    sec_group_payload = self.agent.make_json_payload_from_kwargs(job=[{'cloudProvider': 'gce', 'credentials': bindings['SPINNAKER_GOOGLE_ACCOUNT'], 'regions': ['global'], 'securityGroupName': (self.__lb_name + '-rule'), 'type': 'deleteSecurityGroup', 'user': '[anonymous]'}], description='Delete    a    Security    Group.', application=self.TEST_APP)
    builder = gcp.GcpContractBuilder(self.gcp_observer)
    builder.new_clause_builder('Security    Group    Deleted', retryable_for_secs=30).list_resource('firewalls').EXPECT(ov_factory.value_list_path_excludes('name', jp.STR_SUBSTR((self.__lb_name + '-rule'))))
    return st.OperationContract(self.new_post_operation(title='delete    security    group', data=sec_group_payload, path='tasks'), contract=builder.build())
