# How to clean the top level project?

**URL:** <https://discuss.gradle.org/t/how-to-clean-the-top-level-project/14954>\
**Category:** Help/Discuss\
**Created:** [March 4, 2016, 9:00pm UTC](https://discuss.gradle.org/t/how-to-clean-the-top-level-project/14954 "2016-03-04T21:00:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![sc1478](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/sc1478/32/4341_2.png) [@sc1478](https://discuss.gradle.org/u/sc1478)\
**Post date:** [March 22, 2016, 8:10pm UTC](https://discuss.gradle.org/t/how-to-clean-the-top-level-project/14954/9 "2016-03-22T20:10:55Z")

</div>

Ok. I’ve been on vacation and am only now getting back to this issue. I tried the approach mentioned in [the link that Stefan originally provided](https://discuss.gradle.org/t/is-it-possible-to-partial-override-clean-task/7100) and it does work; however, it produces a deprecation warning message:

> Defining custom ‘clean’ task when using the standard Gradle lifecycle plugins has been deprecated and is scheduled to be removed in Gradle 3.0

So this does not seem like a stable solution. Is there another way?

---

_[View the full topic](https://discuss.gradle.org/t/how-to-clean-the-top-level-project/14954)._
