It's possible to delete a library/content type in the CA Admin. Only libraries/content types that are without content, or not required by other can be deleted. This check only uses data from library.json, so any content types/libraries dependencies that is in semantics.json will not be checked.
Example:
The content type H5P.ImageSlider uses the H5P.ImageSlide library. This usage is set in the semantics.json file, there is no usage set in the library.json file, and since CA Admin uses data based on the library.json it shows that no other library has a dependency to H5P.ImageSlide library and allows deletion of the library.
Suggested solution
When content is stored, libraries the content depends on is stored in a separate table, this table should also be used when deciding if a library can be deleted
It's possible to delete a library/content type in the CA Admin. Only libraries/content types that are without content, or not required by other can be deleted. This check only uses data from library.json, so any content types/libraries dependencies that is in semantics.json will not be checked.
Example: The content type H5P.ImageSlider uses the H5P.ImageSlide library. This usage is set in the semantics.json file, there is no usage set in the library.json file, and since CA Admin uses data based on the library.json it shows that no other library has a dependency to H5P.ImageSlide library and allows deletion of the library.
Suggested solution When content is stored, libraries the content depends on is stored in a separate table, this table should also be used when deciding if a library can be deleted