Deletes object state links identified by $stateId.

@param int $stateId
775684
public function deleteObjectStateLinks($stateId)
    {
        try {
            return $this->innerGateway->deleteObjectStateLinks($stateId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
969360
public function delete($id = null)
	{
		if ($id === null) {
			foreach ($this->getLogs() as $log) {
				unlink($this->path . $log->name);
			}
		} elseif (is_array($id)) {
			foreach ($id as $key) {
				unlink($this->path . $this->getLog($key)->name);
			}
		} else {
			unlink($this->path . $this->getLog((string) $id)->name);
		}
		$this->logs = null;
	}
95648
protected function deleteLinked($code)
    {
        $this->db->delete('city', array('country' => $code));
        $this->db->delete('state', array('country' => $code));
    }
103195
public function remove($id)
    {
        $this->client->delete(Inflector::pluralize($this->getResourceName()).'/'.$id);
    }
1268925
public function deleteTask($taskId)
    {
        if ($taskId instanceof Tasks) {
            $taskId = $taskId->id;
        }

        $this->service->tasks->delete($this->tasklist, $taskId);
    }
175820
public function deleteRating($userId, $ratingId)
    {
        $rating = $this->getRatingById($ratingId);

        $this->validateUserPermissionsToManageRating($rating, $userId);

        $rating = $this->disableSubShopDeleteProtectionForRating($rating);
        $rating->delete();
    }
1042493
public function delete(string $id = null): void
    {
        $this->request->allowMethod(['post', 'delete']);
        $menu = $this->Menus->get($id);
        if ($this->Menus->delete($menu)) {
            $this->Flash->success((string)__('The menu has been deleted.'));
        } else {
            $this->Flash->error((string)__('The menu could not be deleted. Please, try again.'));
        }

        $this->redirect(['action' => 'index']);
    }
407688
public function delete($typeId, $status)
    {
        $this->deleteGroupAssignmentsForType($typeId, $status);
        $this->deleteFieldDefinitionsForType($typeId, $status);
        $this->deleteTypeNameData($typeId, $status);
        $this->deleteType($typeId, $status);
    }
1053562
public function deleteStatus(string $id): void
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use delete() instead.', __METHOD__), E_USER_DEPRECATED);

        $this->client->delete($this->prepareUrlForKey('delete-status', ['id' => $id]));
    }
1303385
public function locationDeleted($locationId)
    {
        $action = 'eznode:' . $locationId;
        $entry = $this->gateway->loadAutogeneratedEntry($action);

        $this->removeSubtree($entry['id'], $action, $entry['is_original']);
    }
474101
public function updateObjectStateLinks($oldStateId, $newStateId)
    {
        try {
            return $this->innerGateway->updateObjectStateLinks($oldStateId, $newStateId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
155368
protected function setCountryState($state_id)
    {
        $this->data_state = array();

        if (is_numeric($state_id)) {

            $this->data_state = $this->state->get($state_id);

            if (empty($this->data_state)) {
                $this->outputHttpStatus(404);
            }
        }
    }
229410
public function setEndState($stateId, $eventId)
    {
        if ($this->stateMachine->getState(StateMachine::STATE_FINAL) === null) {
            $this->stateMachine->addState(new FinalState(StateMachine::STATE_FINAL));
        }

        $this->addTransition($stateId, StateMachine::STATE_FINAL, $eventId);
    }
994396
protected function delete_step($stepid) {
        require_sesskey();

        $step = step::instance($stepid);
        $tour = $step->get_tour();

        $step->remove();
        redirect($tour->get_view_link());
    }
967340
protected function deleteEntityLink($id)
    {
        $post = $this->repository->find($id);

        $this->manager->remove($post);
        $this->manager->flush();
    }
159989
protected function deleteLinked($product_id)
    {
        $conditions = array('product_id' => $product_id);
        $conditions2 = array('entity' => 'product', 'entity_id' => $product_id);

        $this->db->delete('cart', $conditions);
        $this->db->delete('review', $conditions);
        $this->db->delete('rating', $conditions);
        $this->db->delete('wishlist', $conditions);
        $this->db->delete('rating_user', $conditions);

        $this->db->delete('product_sku', $conditions);
        $this->db->delete('product_field', $conditions);
        $this->db->delete('product_translation', $conditions);
        $this->db->delete('product_view', $conditions);

        $this->db->delete('product_related', $conditions);
        $this->db->delete('product_related', array('item_product_id' => $product_id));
        $this->db->delete('product_bundle', $conditions);

        $this->db->delete('file', $conditions2);
        $this->db->delete('alias', $conditions2);
        $this->db->delete('search_index', $conditions2);

        $sql = 'DELETE ci
                FROM collection_item ci
                INNER JOIN collection c ON(ci.collection_id = c.collection_id)
                WHERE c.type = ? AND ci.entity_id = ?';

        $this->db->run($sql, array('product', $product_id));
    }
1301337
protected static function delete_data(int $userid) {
        global $DB;

        foreach (static::get_records($userid) as $record) {
            $DB->delete_records('message_airnotifier_devices', ['id' => $record->id]);
        }
    }