# PSA: XCMv2 deprecation

**URL:** <https://forum.polkadot.network/t/psa-xcmv2-deprecation/8367>\
**Category:** Miscellaneous\
**Created:** [May 27, 2024, 12:59pm UTC](https://forum.polkadot.network/t/psa-xcmv2-deprecation/8367 "2024-05-27T12:59:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![francisco.aguirre](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/francisco.aguirre/32/1388_2.png) [@francisco.aguirre](https://forum.polkadot.network/u/francisco.aguirre)\
**Post date:** [May 27, 2024, 12:59pm UTC](https://forum.polkadot.network/t/psa-xcmv2-deprecation/8367/1 "2024-05-27T12:59:09Z")

</div>

Hello everyone! [XCMv2 has been deprecated](https://github.com/paritytech/polkadot-sdk/pull/4131) and it’s going to be **removed** when XCMv5 comes out.

If you’re using v2, it’s a good time to switch to the much better v3 or v4. The migration should be simple.

Please reply with any questions you might have about the migration and I’ll try my best to answer them 😁.

---

<div class="post-metadata">

**Author:** ![xlc](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/xlc/32/690_2.png) [@xlc](https://forum.polkadot.network/u/xlc)\
**Post date:** [May 28, 2024, 1:02am UTC](https://forum.polkadot.network/t/psa-xcmv2-deprecation/8367/2 "2024-05-28T01:02:21Z")

</div>

We should collect XCM version info from onchain data and will have good idea of usage of each XCM version. It will also be useful for many other things. For example, we will know we can safely remove a particular XCM instruction if it has not been used for 3 months.
