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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.