Offset
Selling to close a long or buying to close a short, in the same quantity and contract month. After offsetting you are flat.
Learn it properly in Long and short positions.
See also: Long, Short, Rollover
Education only, not advice. Futures trading uses leverage, and losses can exceed the money in an account. Examples are hypothetical unless a source is given.