Deletes a profile.

@param string      $customerId
@param string|null $profileId

@return DeleteProfileResponse
490959
public function deleteProfile($customerId, $profileId = null)
    {
        $request = new DeleteProfile($this->config->getMerchantId());
        $request->setCustomerId($customerId);
        $request->setProfileId($profileId);

        $this->request = $request->getXml();
        $this->send();

        $result = new DeleteProfileResponse($this->response);
        return $result;
    }
443144
public function deleteClient($clientId)
    {
        ValidationUtility::ensureStringOrInteger('$clientId', $clientId);

        $this->callServiceDeleteApi(
            self::$CLIENT_DELETE_API_PATH . $clientId);
    }
1091438
public void remove(int profileId) {
        PreparedStatement statement = null;

        try (Connection sqlConnection = sqlService.getConnection()) {
            statement = sqlConnection.prepareStatement("DELETE FROM " + Constants.DB_TABLE_PROFILE +
                                                           " WHERE " + Constants.GENERIC_ID + " = ?");
            statement.setInt(1, profileId);
            statement.executeUpdate();
            statement.close();
            //also want to delete what is in the server redirect table
            statement = sqlConnection.prepareStatement("DELETE FROM " + Constants.DB_TABLE_SERVERS +
                                                           " WHERE " + Constants.GENERIC_PROFILE_ID + " = ?");
            statement.setInt(1, profileId);
            statement.executeUpdate();
            statement.close();
            //also want to delete the path_profile table
            statement = sqlConnection.prepareStatement("DELETE FROM " + Constants.DB_TABLE_PATH +
                                                           " WHERE " + Constants.GENERIC_PROFILE_ID + " = ?");
            statement.setInt(1, profileId);
            statement.executeUpdate();
            statement.close();
            //and the enabled overrides table
            statement = sqlConnection.prepareStatement("DELETE FROM " + Constants.DB_TABLE_ENABLED_OVERRIDE +
                                                           " WHERE " + Constants.GENERIC_PROFILE_ID + " = ?");
            statement.setInt(1, profileId);
            statement.executeUpdate();
            statement.close();
            //and delete all the clients associated with this profile including the default client
            statement = sqlConnection.prepareStatement("DELETE FROM " + Constants.DB_TABLE_CLIENT +
                                                           " WHERE " + Constants.GENERIC_PROFILE_ID + " = ?");
            statement.setInt(1, profileId);
            statement.executeUpdate();
            statement.close();
        } catch (SQLException e) {
            e.printStackTrace();
        } finally {
            try {
                if (statement != null) {
                    statement.close();
                }
            } catch (Exception e) {
            }
        }
    }
657097
public function findProfile($profileId)
    {
        $application = $this->findOneBy(array('isDraft' => null, 'profiles._id' => new \MongoId($profileId)));
        foreach ($application->getProfiles() as $profile) {
            if ($profile->getId() == $profileId) {
                return $profile;
            }
        }
        return null;
    }
516633
def delete(self):
        """"""
        response = delete_profile(self.profile_id)
        response.raise_if_error()
        super(CustomerProfile, self).delete()
902045
public function delete($folderId, $childId, $optParams = array()) {
      $params = array('folderId' => $folderId, 'childId' => $childId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('delete', array($params));
      return $data;
    }
1111427
public function delete(string $customerId, array $headers = [])
    {
        $url = $this->url('customers/%s/delete_card', $customerId);

        return $this->post($url, [], $headers);
    }
800582
def delete(self):
        """"""
        response = delete_payment_profile(self.customer_profile.profile_id,
                                          self.payment_profile_id)
        response.raise_if_error()
        return super(CustomerPaymentProfile, self).delete()
472977
public function delete($accountId, $permissionId, $optParams = array())
  {
    $params = array('accountId' => $accountId, 'permissionId' => $permissionId);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }
1052383
@SuppressWarnings("WeakerAccess")
  public ApiFuture<Void> deleteAppProfileAsync(String instanceId, String appProfileId) {
    String name = NameUtil.formatAppProfileName(projectId, instanceId, appProfileId);
    DeleteAppProfileRequest request = DeleteAppProfileRequest.newBuilder().setName(name).build();

    return ApiFutures.transform(
        stub.deleteAppProfileCallable().futureCall(request),
        new ApiFunction<Empty, Void>() {
          @Override
          public Void apply(Empty input) {
            return null;
          }
        },
        MoreExecutors.directExecutor());
  }
1085206
public function delete($clientAccountId, $sponsorAccountId, $optParams = array())
  {
    $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }
896680
def delete(instance_id, profile=None, **kwargs):
    '''
    

    '''
    conn = _auth(profile, **kwargs)
    return conn.delete(instance_id)
724828
public function deleteBACSBankAccount( CustomerVault\Profile $profile, CustomerVault\BACSBankaccounts $bankDetails )
    {
        $bankDetails->setRequiredFields(array('id'));
        $bankDetails->checkRequiredFields();
		$profile->setRequiredFields(array('id'));
        $profile->checkRequiredFields();
        $request = new Request(array(
            'method' => Request::DELETE,
            'uri' => $this->prepareURI("/profiles/" . $profile->id . "/bacsbankaccounts/" . $bankDetails->id)
        ));
        $response = $this->client->processRequest($request);
        return $response;
    }
578747
public function deleteFromId( $ContactEntryId){
        $rest = $this->getService( self::API_CONTACT);
        $rest->DELETE( $ContactEntryId);

        return $rest->getSuccess();
    }
1197138
public function delete($customerOrId = null, $addressId = null)
    {
        $this->_validateId($addressId);
        $customerId = $this->_determineCustomerId($customerOrId);
        $path = $this->_config->merchantPath() . '/customers/' . $customerId . '/addresses/' . $addressId;
        $this->_http->delete($path);
        return new Result\Successful();
    }
413837
def delete_profile(id, factory_id, opts = {})
      data, _status_code, _headers = delete_profile_with_http_info(id, factory_id, opts)
      return data
    end
377957
public function create($data, $customerId = null)
    {
        if (isset($customerId)) {
            return $this->client()->put($data, 'customers/{customerId}', ['customerId' => $customerId]);
        }

        return $this->client()->post($data, 'customers');
    }