code: public boolean delete( CPath path )
              throws CStorageException
      {
          // Request sub-objects w/o delimiter : all sub-objects are returned
          // In case c_path is a blob, we'll get an empty list
          JSONArray array = listObjectsWithinFolder( path, null );
          LOGGER.debug( "List objects with folder {} = {}", path, array );
          // Now delete all objects ; we start with the deepest ones so that
          // in case we are interrupted, directory markers are still present
          // Note : swift may guarantee that list is ordered, but could not confirm information...
          List<String> pathnames = new ArrayList<String>( array.length() + 1 );
          JSONObject obj;
          for ( int i = 0; i < array.length(); i++ ) {
              obj = array.getJSONObject( i );
              pathnames.add( "/" + obj.getString( "name" ) );
          }
          Collections.sort( pathnames );
          Collections.reverse( pathnames );
          // Now we also add that top-level folder (or blob) to delete :
          pathnames.add( path.getPathName() );
  
          boolean atLeastOneDeleted = false;
          for ( String pathname : pathnames ) {
              LOGGER.debug( "deleting object at path : {}", pathname );
              String url = getObjectUrl( new CPath( pathname ) );
  
              CResponse response = null;
              try {
                  RequestInvoker<CResponse> ri = getApiRequestInvoker( new HttpDelete( url ), path );
                  response = retryStrategy.invokeRetry( ri );
                  atLeastOneDeleted = true;
  
              } catch ( CFileNotFoundException ex ) {
                  // continue
              } finally {
                  PcsUtils.closeQuietly( response );
              }
          }
          return atLeastOneDeleted;
      }
docs: If path references a folder, this is a lengthly operation because all sub-objects must be deleted one by one. (as
  of 2014-02, hubic swift does not seem to support bulk deletes :
  http://docs.openstack.org/developer/swift/middleware.html#module-swift.common.middleware.bulk )
  
  @param path The file path