Removing employee by card number

@param string $cardNumber
@return object
352497
public function removeEmployeeByCardNumber($cardNumber)
    {
        $cardNumber = $this->prepareKey($cardNumber);
        $result     = null;
        $this->addHeader();
        try {
            $empResult = $this->getSoap()->GetAssignedAcsKeyByKeyNumber([
                'keyNumber' => $cardNumber
            ]);
            if ($empResult->GetAssignedAcsKeyByKeyNumberResult !== null) {
                $result = $this->removeEmployee($empResult->GetAssignedAcsKeyByKeyNumberResult->AcsEmployeeId);
            }
        } catch (\SoapFault $ex) {
            $this->logError();
        }
        return $result;
    }
644140
function remove_from_group($group_id, $ids)
    {
        if (!is_array($ids))
            $ids = explode(self::SEPARATOR, $ids);

        $ids = $this->db->array2list($ids, 'integer');

        $sql_result = $this->db->query(
            "DELETE FROM " . $this->db->table_name($this->db_groupmembers, true).
            " WHERE `contactgroup_id` = ?".
                " AND `contact_id` IN ($ids)",
            $group_id
        );

        return $this->db->affected_rows($sql_result);
    }
640013
public static function get($cardNumber)
    {
        $api = new Api\Balance();
        $api->setCardNumber($cardNumber);
        $result = $api->doRequest();

        return new Result\Voucher($result);
    }
889050
public function setCardNumber($cardNumber)
    {
        if (!preg_match('/^[0-9]+$/', $cardNumber = str_replace('-', '', $cardNumber))) {
            throw new \InvalidArgumentException('The card number must be numerical.');
        }

        $this->cardNumber = $cardNumber;
        
        return $this;
    }
377269
public static BaseResult deleteByCardId(String accessToken, String cardId) {
		return delete(accessToken, String.format("{\"card_id\": \"%s\"}", cardId));
	}
537785
public function unstore($reference, $options = array())
    {
        Options::required('card_token', $options);

        $action = sprintf(self::UNSTORE, $reference, $options['card_token']);

        return $this->commit($action, RequestInterface::METHOD_DELETE);
    }
1270505
public function deleteAddressBook($addressBookId)
    {
        $stmt = $this->pdo->prepare('DELETE FROM '.$this->cardsTableName.' WHERE addressbookid = ?');
        $stmt->execute([$addressBookId]);

        $stmt = $this->pdo->prepare('DELETE FROM '.$this->addressBooksTableName.' WHERE id = ?');
        $stmt->execute([$addressBookId]);

        $stmt = $this->pdo->prepare('DELETE FROM '.$this->addressBookChangesTableName.' WHERE addressbookid = ?');
        $stmt->execute([$addressBookId]);
    }
1071633
function (card, cb) {

		Card.destroy(card.id)
	    .exec(function (err, destroyedCards){
	      if (err) return cb(err);
	      if (!destroyedCards) return cb(null, null);
	      Card.afterStripeCustomerCardDeleted(destroyedCards[0], function(err, card){
	      	cb(null, card);
	      });
	    });
	}
491939
def OnRemoveCards(self, removedcards):
        """"""
        self.mutex.acquire()
        try:
            parentnode = self.root
            for cardtoremove in removedcards:
                (childReader, cookie) = self.GetFirstChild(parentnode)
                found = False
                while childReader.IsOk() and not found:
                    if self.GetItemText(childReader) == \
                            str(cardtoremove.reader):
                        (childCard, cookie2) = self.GetFirstChild(childReader)
                        self.SetItemText(childCard, 'no card inserted')
                        found = True
                    else:
                        (childReader, cookie) = \
                            self.GetNextChild(parentnode, cookie)
            self.Expand(self.root)
        finally:
            self.mutex.release()
        self.EnsureVisible(self.root)
        self.Repaint()
949183
public function removeAdministrator($person)
    {
        $result = $this->administrators->extract($person);

        if (!$result) {
            $this->resetStats(array($this->_mixer, $person));
        }

        return $result;
    }
1147051
public function deleteCard($param)
    {
        $this->flushState();
        $uri = $this->getUriCustomer();
        $hasError = false;
        $param['method'] = CheckoutApi_Client_Adapter_Constant::API_DELETE;
        $isCustomerIdValid = CheckoutApi_Client_Validation_GW3::isCustomerIdValid($param);
        $isCardIdValid = CheckoutApi_Client_Validation_GW3::isGetCardIdValid($param);

        if(!$isCustomerIdValid) {
            $hasError = true;
            $this->throwException('Please provide a valid customer id',array('param'=>$param));

        }elseif(!$isCardIdValid){
            $hasError = true;
            $this->throwException('Please provide a valid card id',array('param'=>$param));
        } else {

            $uri = "$uri/{$param['customerId']}/cards/{$param['cardId']}";
        }

        return $this->request( $uri ,$param,!$hasError);
    }
764253
protected function checkFormat($cardNumber)
    {
        return preg_match('/^[0-9]+$/', $cardNumber) && preg_match($this->patterns[$this->format], $cardNumber);
    }
640217
public function deleteCard($addressBookId, $cardUri)
    {
        $stmt = $this->pdo->prepare('DELETE FROM '.$this->cardsTableName.' WHERE addressbookid = ? AND uri = ?');
        $stmt->execute([$addressBookId, $cardUri]);

        $this->addChange($addressBookId, $cardUri, 3);

        return 1 === $stmt->rowCount();
    }
26021
public function deleteCustomer($customer_id)
    {
        $response = $this->client->delete('customers/' . $customer_id);
        return json_decode($response->getBody())->customer;
    }
1260496
public function removeRow($numberOrRow) {
        if ($numberOrRow instanceof Row) {
            $id = $numberOrRow->getRowNumber();
        } elseif (Row::isValidNumber($numberOrRow)) {
            $id = $numberOrRow;
        } else {
            throw new \InvalidArgumentException('Invalid row identifier');
        }

        $putData = array(
            'method' => 'shiftRow',
            'index' => $id - 1,
            'amount' => 1
        );

        $setId = $this->getDataSet()->id;
        $result = $this->getClient()->put('data/alter/' . $setId, $putData);

        return (isset($result['success']) && $result['success']);
    }
488989
public function deleteCard($cardId)
    {
        if (!$this->stripe_id) {
            return [
                'status' => 'error',
                'message' => 'Invalid StripeId'
            ];
        }

        try {
            $stripe = new Stripe(Billable::getStripeKey());

            $card = $stripe->cards()
                ->delete($this->stripe_id, $cardId);

            return [
                'status' => 'success',
                'cardId' => $card['id']
            ];
        } catch (\Exception $e) {
            return [
                'status' => 'error',
                'message' => $e->getMessage()
            ];
        }
    }
774178
function deleteCard(card, options) {
  return webdav.deleteObject(card.url, card.etag, options);
}