# FAQ: How can I deprecate a component?

**URL:** <https://forum.ionicframework.com/t/faq-how-can-i-deprecate-a-component/217368>\
**Category:** Stencil\
**Tags:** faq\
**Created:** [November 15, 2021, 9:34pm UTC](https://forum.ionicframework.com/t/faq-how-can-i-deprecate-a-component/217368 "2021-11-15T21:34:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agiuliano](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/agiuliano/32/139321_2.png) [@agiuliano](https://forum.ionicframework.com/u/agiuliano)\
**Post date:** [November 15, 2021, 9:34pm UTC](https://forum.ionicframework.com/t/faq-how-can-i-deprecate-a-component/217368/1 "2021-11-15T21:34:36Z")

</div>

While there is no official way to deprecate a component, there are a few things you can do to indicate a component’s deprecation. Firstly, you can add the `@deprecated` jsdoc comment to the `@Component` decorator to make the generated `readme` reflect the deprecated status. Secondly, you can add a `console.warn()` statement in the component’s `componentWillLoad()` method to warn the user that the component is deprecated. This message can also include reference to an alternative component, what version it will be removed in, etc.
