public function delete()
    {
        $response = $this->api->request('DELETE', $this->absolutePath());

        switch ($response->getStatusCode()) {
            case 204:
                // Container removed.
                return;
            case 404:
                throw new ApiRequestFailedException('Container "'.$this->name().'" was not found.');
            case 409:
                throw new ApiRequestFailedException('Container must be empty.');
        }
    }
public function delete()
    {
        $response = $this->api->request('DELETE', $this->absolutePath());

        switch ($response->getStatusCode()) {
            case 204:
                // Container removed.
                return;
            case 404:
                throw new ApiRequestFailedException('Container "'.$this->name().'" was not found.');
            case 409:
                throw new ApiRequestFailedException('Container must be empty.');
        }
    }
public function delete ( ) { $ response = $ this -> api -> request ( 'DELETE' , $ this -> absolutePath ( ) ) ; switch ( $ response -> getStatusCode ( ) ) { case 204 : // Container removed. return ; case 404 : throw new ApiRequestFailedException ( 'Container "' . $ this -> name ( ) . '" was not found.' ) ; case 409 : throw new ApiRequestFailedException ( 'Container must be empty.' ) ; } }
Deletes container. Container must be empty in order to perform this operation.

@throws \ArgentCrusade\Selectel\CloudStorage\Exceptions\ApiRequestFailedException
Deletes container . Container must be empty in order to perform this operation .