Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Modern SPFx web part creates a new list 'abc' using code when it is added to site contents.
Now I want to remove list 'abc' automatically when web part is removed from site contents(using code not manually).
How can I achieve this?
Required, but never shown
6 months ago