7 speed cassette help

hi there
i would like to swap out my Shimano 12 speed cassette with XTR derailleur with a 7 speed option.
Its on my Pivot Firebird and only use it for Bike Park Days

They are DT Swiss XM1700 wheels with the 350 hubs

Any know what I need to do the conversion?

Thanks