NaviServer Built-in Commands – 5.0.0b1
ns_ftruncate - truncate an open Tcl channel to a specified length
This command truncates an open Tcl channel channelId to the size of length bytes. If length is not specified then it is assumed to be zero. This command is similar to the TclX [ftruncate] command.