0

I have a Flutter project, and I want to delete all Getx's GetxController that I injected using:

Get.put(/*...*/);
Get.lazyPut(/*...*/);

is this possible with Getx, and how?

My Car
  • 4,198
  • 5
  • 17
  • 50
Gwhyyy
  • 7,554
  • 3
  • 8
  • 35
  • 1
    Does this answer your question? [Flutter GETX: How to remove Initialized Controller every time we navigate to other page/routes](https://stackoverflow.com/questions/67250736/flutter-getx-how-to-remove-initialized-controller-every-time-we-navigate-to-oth) ? – OMi Shah Nov 20 '22 at 06:18
  • no, I want a way to delete all controllers that I inject in the entire app. – Gwhyyy Nov 20 '22 at 06:19

1 Answers1

2

Try the following code:

Get.deleteAll();
My Car
  • 4,198
  • 5
  • 17
  • 50