Operation deleteBrand

Removes a brand.

@param string $account_id The external account number (int) or account ID Guid.
@param string $brand_id The unique identifier of a brand.
@throws \DocuSign\eSign\ApiException on non-2xx response
@return void
975734
public function deleteBrand($account_id, $brand_id)
    {
        list($response) = $this->deleteBrandWithHttpInfo($account_id, $brand_id);
        return $response;
    }
323787
protected function controlDeleteProductCompare(array &$result, $product_id)
    {
        if (empty($result['redirect'])) {
            $segments = explode(',', $this->path());
            if (isset($segments[0]) && $segments[0] === 'compare' && !empty($segments[1])) {
                $ids = array_filter(array_map('trim', explode(',', $segments[1])), 'ctype_digit');
                unset($ids[array_search($product_id, $ids)]);
                $result['redirect'] = $segments[0] . '/' . implode(',', $ids);
            }
        }
    }
577145
protected void deleteApiKeyInternal(final ObjectId id) {
    final StitchAuthRequest.Builder reqBuilder = new StitchAuthRequest.Builder();
    reqBuilder
            .withMethod(Method.DELETE)
            .withPath(routes.getApiKeyRouteForId(id.toHexString()))
            .withRefreshToken();
    getRequestClient().doAuthenticatedRequest(reqBuilder.build());
  }
619946
def brand_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/brands/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
981240
static function removeByID( $id )
    {
        $id = (int) $id;

        $db = eZDB::instance();
        $db->begin();

        // Delete references to the category from VAT charging rules.
        eZVatRule::removeReferencesToProductCategory( $id );

        // Reset product category attribute for all products
        // that have been referencing the category.
        $ini = eZINI::instance( 'shop.ini' );
        if ( $ini->hasVariable( 'VATSettings', 'ProductCategoryAttribute' ) &&
             $categoryAttrName = $ini->variable( 'VATSettings', 'ProductCategoryAttribute' ) )
        {
            $categoryAttrName = $db->escapeString( $categoryAttrName );
            $query = "SELECT coa.id FROM ezcontentobject_attribute coa, ezcontentclass_attribute cca, ezcontentobject co " .
                     "WHERE " .
                     " cca.id=coa.contentclassattribute_id " .
                     " AND coa.contentobject_id=co.id " .
                     " AND cca.data_type_string='ezproductcategory' " .
                     " AND cca.identifier='$categoryAttrName' " .
                     " AND coa.version=co.current_version " .
                     " AND coa.data_int=$id";

            $rows = $db->arrayQuery( $query );

            foreach ( $rows as $row )
            {
                $query = "UPDATE ezcontentobject_attribute SET data_int=0, sort_key_int=0 WHERE id=" . (int) $row['id'];
                $db->query( $query );
            }
        }

        // Remove the category itself.
        eZPersistentObject::removeObject( eZProductCategory::definition(),
                                          array( "id" => $id ) );

        $db->commit();
    }
413671
private function createDeleteForm(BrandModel $brandModel)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('ecommerce_brandmodel_delete', array('id' => $brandModel->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
859917
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CommerceSubscriptionEntry commerceSubscriptionEntry : findByUuid_C(
				uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceSubscriptionEntry);
		}
	}
674629
def delete_user(self, user_id):
        
        api = self._get_api(iam.AccountAdminApi)
        api.delete_user(user_id)
        return
1102436
public function removeAffiliation($role_id, $affiliation_id)
    {

        $this->removeAffiliationFromRole($role_id, $affiliation_id);

        return redirect()->back()
            ->with('success', trans('web::seat.affiliation_removed'));
    }
599751
def delete(self, id, product_id, session):
        ''''''
        request = TOPRequest('taobao.product.img.delete')
        request['id'] = id
        request['product_id'] = product_id
        self.create(self.execute(request, session)['product_img'])
        return self
599947
public function deleteByProductAbstractId(int $idProductAbstract): void
    {
        $this->getFactory()
            ->getBrandProductQuery()
            ->filterByFkProductAbstract_In([$idProductAbstract])
            ->delete();
    }
511008
def delete_account(self, account):
        
        self.request('DeleteAccount', {
            'id': self._get_or_fetch_id(account, self.get_account),
        })
941310
synchronized void removeCredential(String accountId) throws IOException {
        DataStore<StoredCredential> sc = StoredCredential.getDefaultDataStore(dataStoreFactory);
        sc.delete(accountId);
        calendarService = null;
        geoService = null;
    }
453479
def delete_campaign(self, campaign_id):
        
        api = self._get_api(update_service.DefaultApi)
        api.update_campaign_destroy(campaign_id)
        return
26021
public function deleteCustomer($customer_id)
    {
        $response = $this->client->delete('customers/' . $customer_id);
        return json_decode($response->getBody())->customer;
    }
808071
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CommerceVirtualOrderItem commerceVirtualOrderItem : findByUuid_C(
				uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceVirtualOrderItem);
		}
	}
1050974
protected function removeDependedAliases($alias, $id)
    {
        foreach ($this->ids[$id] as $otherAlias) {
            if (isset($this->aliases[$otherAlias]) && $this->aliases[$otherAlias] === $alias) {
                unset($this->aliases[$otherAlias]);
                $aliases = &$this->ids[$id];
                unset($aliases[array_search($otherAlias, $aliases, true)]);
                if (!empty($aliases)) {
                    $this->removeDependedAliases($otherAlias, $id);
                } else {
                    unset($this->ids[$id]);
                }
            }
        }
    }