How to remove the list when spfx web part delete?

The modern web element creates a new list & # 39; abc & # 39; using code when it is added to the content of the site. Now I want to delete the list & # 39; abc & # 39; when the web element is removed from the content of the site using the code not manually.