CSOM or Microsoft Graph check if the list / library can be deleted


Is it possible to verify if a list / library can be deleted? Is there a property that is used in the user interface for this?

You can delete custom lists / document libraries in SharePoint Online
enter the description of the image here

The default document library can not be deleted:
enter the description of the image here