Deletes a Drop.

@param Drop $drop
331021
public function deleteDrop(Drop $drop)
    {
        $this->om->startFlushSuite();
        $documents = $drop->getDocuments();

        foreach ($documents as $document) {
            $this->deleteDocument($document);
        }
        $this->om->remove($drop);
        $this->om->endFlushSuite();
    }
200114
public function deleteTool(DropzoneTool $tool)
    {
        $this->om->remove($tool);
        $this->om->flush();
    }
1055140
private function dropTable($table)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster();
        $database->execute("DROP TABLE `$table`");
    }
192328
public function down()
    {
        Schema::table('laradrop_files', function ($table) {
            $table->dropColumn('parent_id');
            $table->dropColumn('lft');
            $table->dropColumn('rgt');
            $table->dropColumn('depth');
            $table->dropColumn('type');
            $table->dropColumn('meta');
            $table->dropColumn('public_resource_url');
            $table->dropColumn('alias');
            $table->dropColumn('has_thumbnail');
        });
    }
627616
public function delete($query)
    {
        $classes = $this->getClassMetadata();
        foreach ($classes as $class) {
            $this->_sm->getClient()->removeAll($class, $query);
        }
    }
706124
function delete() {
			$this->_data = array();

			$all_data = $this->get_all_data();
			unset( $all_data[ $this->_secondary_id ] );
			$options_manager = $this->get_option_manager();
			$options_manager->set_option( $this->_id, $all_data, true );
		}
1227304
public static function dropCollection($collection)
  {
    static::checkConnexion();
    $collection = self::$db->$collection;
    $r = $collection->drop();
    if ($r['ok']) {
      return true;
    }
    return false;
  }
385814
public function drop()
    {
        if ($this->eventManager->hasListeners(Events::preDropDatabase)) {
            $this->eventManager->dispatchEvent(Events::preDropDatabase, new EventArgs($this));
        }

        $result = $this->mongoDB->drop();

        if ($this->eventManager->hasListeners(Events::postDropDatabase)) {
            $this->eventManager->dispatchEvent(Events::postDropDatabase, new EventArgs($this));
        }

        return $result;
    }
1093262
public function drop($key) {
        $fileName = $this->getFilePath($key);

        if (is_file($fileName)) {
            if (unlink($fileName)) {
                clearstatcache();

                $this->getReferencePool()->drop($key);
                return true;
            }
            throw new RuntimeException('Cannot delete file: '.$fileName);
        }

        return false;
    }
433852
public function unlockDrop(Drop $drop)
    {
        $this->om->startFlushSuite();

        $drop->setUnlockedDrop(true);
        $this->checkSuccess($drop);
        $this->om->persist($drop);

        $this->om->endFlushSuite();

        return $drop;
    }
923225
public function delete(Contact $contact): void
    {
        $id = $contact->getId();

        $contact->setId(null);

        $this->client->delete($this->prepareUrlForKey('delete-contact', ['id' => $id]));
    }
926515
def do_drop(self, line):
        ""
        self.conn.delete_table(self.conn.get_table(line))
562181
function drop()
    {

        $index = new Index($this->index);

        $index->connection = $this->connection;

        return $index->drop();
    }
1099665
public static function drop(\mysqli $connection, $tablename)
  {
    $connection->query("drop table $tablename");
    if (!isset(self::$instances[$tablename]))
      unset(self::$instances[$tablename]);
  }
693561
public static function drop() {
		foreach([
			"DROP VIEW IF EXISTS v_usess",
			"DROP TABLE IF EXISTS usess",
			"DROP TABLE IF EXISTS udata",
			"DROP TABLE IF EXISTS meta",
		] as $drop) {
			// @codeCoverageIgnoreStart
			try {
				self::$sql->query_raw($drop);
			} catch(SQLError $e) {
				$msg = "Cannot drop data:" . $e->getMessage();
				self::$logger->error("Zapmin: sql error: $msg");
				throw new AdminStoreError($msg);
			}
			// @codeCoverageIgnoreEnd
		}
	}
770449
public function drop()
    {
        $this->curl->drop($this->base);
        $this->curl->createCacheIndex($this->base, $this->createCache);
        $this->dropChain();
    }
1263554
public function delete($key)
    {
        $stmt = $this->db->prepare(
            'DELETE FROM ' . $this->name . ' WHERE ' . $this->keyColumnName
            . ' = :key;'
        );
        $stmt->bindParam(':key', $key, \PDO::PARAM_STR);
        $stmt->execute();

        unset($this->data[$key]);
    }