It depends on the broker you are trading with.
Most brokers don’t allow taking delivery of commodities since it’s cumbersome and thus square off positions before delivery intention period. Some contracts like base metals, crude oil etc get cash settled, so these positions can be left for expiry and the trades get settled as per the settlement price.