Deletes a product from the database

@param name String
544891
public void deleteProduct(final String name) {
        final DbProduct dbProduct = getProduct(name);
        repositoryHandler.deleteProduct(dbProduct.getName());
    }
245817
protected function deleteProduct()
    {
        $this->controlAccess('product_delete');

        if ($this->product->delete($this->data_product['product_id'])) {
            $this->redirect('admin/content/product', $this->text('Product has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Product has not been deleted'), 'warning');
    }
392078
function delete($name)
    {
        if (isset($this->children[$name])){
            $this->children[$name]->parent = null;
            unset($this->children[$name]);
        }else
        if (isset($this->temps[$name])){
            $this->temps[$name]->parent = null;
            unset($this->temps[$name]);
        }
    }
1058114
public function delete($name)
    {
        $this->stale = true;

        try {
            $this->model->where('name', '=', $name)->delete();
        } catch (Exception $e) {
            throw new WriteException($e);
        }
    }
1357531
public function deleteDb($name)
    {
        $file = __config()->database->sqlite_name;
        if (file_exists($file)) {
            unset($file);

            return true;
        }

        return false;
    }
605357
public void delete_property(String name, String propname) throws DevFailed {
		databaseDAO.delete_property(this, name, propname);

	}
1013177
public function dropIndex($name)
    {
        if (!$this->hasIndex($name)) {
            throw SchemaException::tableIndexDoesNotExist($this->getName(), $name);
        }

        unset($this->indexes[$name]);
    }
1192654
public function delete($name) {

        if ( array_key_exists($name, $this->data) ) {
            unset($this->data[$name]);
            return true;
        }

        return false;

    }
309427
private function removeConfig($name)
    {
        try {
            $this->configFactory->getEditable($name)->delete();
        } catch (\Exception $e) {
            throw new RuntimeException($e->getMessage());
        }
    }
665172
public function dropCheck($name)
    {
        if (!$this->hasCheck($name)) {
            throw SchemaException::tableCheckDoesNotExist($this->getName(), $name);
        }

        unset($this->checks[$name]);
    }
531255
@InterfaceAudience.Public
    public void delete() {
        if (viewStore != null)
            viewStore.deleteView();
        if (database != null && name != null)
            database.forgetView(name);
        close();
    }
532969
public function rm($name) {
        $name  = $this->options['prefix'].sqlite_escape_string($name);
        $sql  = 'DELETE FROM '.$this->options['table'].' WHERE var=\''.$name.'\'';
        sqlite_query($this->handler, $sql);
        return true;
    }
1026548
def delete_database(self, name_or_obj):
        
        name = utils.get_name(name_or_obj)
        self._database_manager.delete(name)
519443
public static function removeConfig(string $name): void
    {
        if ($name == 'application') {
            throw new ApplicationException('You\'re not allowed to remove \'application\' config in runtime');
        }

        if (isset(static::$configs[$name])) {
            unset(static::$configs[$name]);
        }
    }
1064507
public function disconnect($name)
    {
        if (isset($this->pdoArray[$name])) {
            $pdo    = $this->pdoArray[$name];
            if ($this->activePdo == $pdo) {
                $this->activePdo = null;
            }

            unset($this->pdoArray[$name]);
        }
    }
217532
public function actionDelete ($name)
		{
			$class = $this->_modelClass;
			$object = $class::find()->where([ 'name' => $name ])->one();
			if ($object == null)
			{
				Console::printColor('Setting not found.', 'red');
				Yii::$app->end();
			}

			if ($this->confirm("Remove setting '" . $name . "'?"))
			{
				if ($object->delete())
					Console::printColor('Setting deleted.', 'green');
				else
					Console::printColor(current($object->getFirstErrors()), 'red');
			}
		}
355597
public function dropIndex($name)
    {
        if (is_array($name))
            $name = $this->name.'___'.implode('__', $name);
        elseif(!is_int(strpos($name,'___')))
            $name = $this->name.'___'.$name;
        $name = $this->db->quotekey($name);
        $table = $this->db->quotekey($this->name);
        $cmd = array(
            'pgsql|sqlite2?|ibm' =>
                "DROP INDEX $name;",
            'mssql|sybase|dblib|odbc|sqlsrv' =>
                "DROP INDEX $table.$name;",
            'mysql'=>
                "ALTER TABLE $table DROP INDEX $name;",
        );
        $query = $this->findQuery($cmd);
        $this->queries[] = $query;
    }