unregister() #

Available since 2.10.2

Removes a pipe registered once the application is started, with the dynamic option of register.

This method can only be used once the application is started.

unregister(pipeId: string): void

ArgumentTypeDescription
pipeId
string
Pipe identifier returned by register

Errors #

Usage #

const pipeId = app.pipe.register(
  'server:afterNow',
  async (request: KuzzleRequest) => request,
  { dynamic: true });

app.pipe.unregister(pipeId);