deleteStream(serviceName, stream) {
    return this.StreamsApiService.delete({ serviceName, streamId: stream.streamId }, stream)
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_stream_delete_success', { streamName: stream.title });
      })
      .catch(err => this.LogsHelperService.handleError('logs_stream_delete_error', err, { streamName: stream.title }));
  }
/**
   * delete stream
   *
   * @param {any} serviceName
   * @param {any} stream, stream object to be deleted
   * @returns promise which will be resolve to operation object
   * @memberof LogsStreamsService
   */
delete stream
@param {any} serviceName
@param {any} stream, stream object to be deleted
@returns promise which will be resolve to operation object
@memberof LogsStreamsService
delete stream @param { any } serviceName @param { any } stream stream object to be deleted @returns promise which will be resolve to operation object @memberof LogsStreamsService
deleteStream(serviceName, stream) {
    return this.StreamsApiService.delete({ serviceName, streamId: stream.streamId }, stream)
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data || operation, 'logs_stream_delete_success', { streamName: stream.title });
      })
      .catch(err => this.LogsHelperService.handleError('logs_stream_delete_error', err, { streamName: stream.title }));
  }
deleteStream ( serviceName , stream ) { return this . StreamsApiService . delete ( { serviceName , streamId : stream . streamId } , stream ) . $promise . then ( ( operation ) => { this . resetAllCache ( ) ; return this . LogsHelperService . handleOperation ( serviceName , operation . data || operation , 'logs_stream_delete_success' , { streamName : stream . title } ) ; } ) . catch ( err => this . LogsHelperService . handleError ( 'logs_stream_delete_error' , err , { streamName : stream . title } ) ) ; }
delete stream
 @param {any} serviceName
 @param {any} stream, stream object to be deleted
 @returns promise which will be resolve to operation object
 @memberof LogsStreamsService
delete stream @param { any } serviceName @param { any } stream stream object to be deleted @returns promise which will be resolve to operation object @memberof LogsStreamsService