Deletes an existing bucket

@param  string $sBucket The bucket's slug

@return boolean
185496
public function bucketDestroy($sBucket)
    {
        //  @todo - consider the implications of bucket deletion; maybe prevent deletion of non-empty buckets
        dumpanddie('@todo');
        try {

            if (!rmdir($this->getPath() . $sBucket)) {
                throw new NailsException('Failed to destroy bucket');
            }

            return true;

        } catch (\Exception $e) {
            $this->setError('LOCAL-SDK ERROR: ' . $e->getMessage());
            return false;
        }
    }
1274475
public function delete()
	{
		$asset = Model::oneByName($this->getAssetName());

		if ($asset->get('id'))
		{
			if (!$asset->destroy())
			{
				return false;
			}
		}

		return true;
	}
727826
public function delete($objSlug)
    {
        $this->validator->validateFor(__FUNCTION__, $objSlug)->throwOnError();

        return $this->dao->delete($objSlug);
    }
1183733
public function delete($key, $scope = null)
    {
        if ($scope === null) {
            $scope = $this->getScope();
        }

        return $this->getContainer()->delete($key, $scope);
    }
579816
public function RemoveItem($sBasketItemKey)
    {
        $oRemoveItem = $this->FindItemByBasketItemKey($sBasketItemKey);
        if ($oRemoveItem) {
            $iOldAmount = $oRemoveItem->dAmount;
            $oRemoveItem->ChangeAmount(0);
            $this->UpdateItemAmount($oRemoveItem);
            $oRemoveItem->ChangeAmount($iOldAmount);
        } else {
            $oRemoveItem = false;
        }

        return $oRemoveItem;
    }
430857
public function delete($key)
    {
        if ($this->has($key)) {
            unset($this->values[$key]);

            return true;
        }

        return false;
    }
562227
public function RemoveVoucher($sBasketVoucherKey, $sMessageHandler)
    {
        $bRemoved = $this->GetActiveVouchers()->RemoveItem('sBasketVoucherKey', $sBasketVoucherKey);
        $oMessageManager = TCMSMessageManager::GetInstance();
        if ($bRemoved) {
            $oMessageManager->AddMessage($sMessageHandler, 'VOUCHER-REMOVED');
            $this->SetBasketRecalculationFlag();
        } else {
            $oMessageManager->AddMessage($sMessageHandler, 'VOUCHER-ERROR-NOT-FOUND');
        }

        return $bRemoved;
    }
1359847
public function move($srcBucket, $srcKey, $destBucket, $destKey, $force=true){
        $err = $this->bucketManager->move($srcBucket, $srcKey, $destBucket, $destKey, $force);
        if($err){
            return $this->error($err->message(), ['errorCode'=>$err->code()]);
        }
        return $this->success('操作成功');
    }
37902
public function delete($key)
	{
		if(!$this->exists($key)) {
			return false;
		}

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

		return true;
	}
792632
public function objectDestroy($sObject, $sBucket)
    {
        try {

            $sObject = urldecode($sObject);
            $sBucket = urldecode($sBucket);

            if (file_exists($this->getPath() . $sBucket . '/' . $sObject)) {
                if (!@unlink($this->getPath() . $sBucket . '/' . $sObject)) {
                    throw new NailsException('File failed to delete, it may be in use');
                }
            } else {
                throw new NailsException('No file to delete');
            }

            return true;

        } catch (\Exception $e) {
            $this->setError('LOCAL EXCEPTION: [objectDestroy]: ' . $e->getMessage());
            return false;
        }
    }
880144
public function remove($key)
    {
        if ($this->stack->exists($key)) {
            $this->stack->remove($key);
            return true;
        }
        return false;
    }
437740
public function delete($key)
    {
        $key = $this->_key($key);
        unset($this->data[$key]);

        return true;
    }
759653
public function delete(): bool
	{
		if($this->isPersisted)
		{
			$deleted = $this->deleteRecord($this->builder());

			if($deleted)
			{
				$this->isPersisted = false;
				$this->original    = [];
				$this->related     = [];
			}

			return $deleted;
		}

		return false;
	}
752055
public function delete($path)
    {
        try{
            $this->getOss()->deleteObject($this->bucket, $path);
            return true;
        }catch (OssException $e){

        }
        return false;
    }
741036
public function delete($key)
	{
		if (isset($this->jar[$key]) and ! $this->jar[$key]->isDeleted())
		{
			return $this->jar[$key]->delete();
		}
		elseif ($this->has($key))
		{
			return $this->parent->delete($key);
		}

		return false;
	}
1352331
public function remove(ChipPot $removeChipPot)
    {
        return $this->reject(function (ChipPot $chipPot) use ($removeChipPot) {
            return $chipPot->equals($removeChipPot);
        })->values();
    }
598106
public function removeAction($slug)
    {
        if (array_key_exists($slug, $this->actions)) {
            unset($this->actions[$slug]);

            return true;
        } else {
            return false;
        }
    }