I can't delete a particular library

I am trying to tidy up my plex and delete libraries mainly because when I specified what folders I wanted to load onto Plex, it actually decided to add in unwanted folders also making the whole thing a complete mess. Now when I try and delete this library, it asks me to confirm the deletion, looks as though it’s deleting and then stops and the library is still there completely intact???

may be there is corruption in the database stopping the deletion.

Please ensure debug logging is enabled. restart the server. repeat the attempt to delete and if it fails -get a screenshot and logs

See
https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/
https://support.plex.tv/articles/200250417-plex-media-server-log-files/

If you specified a folder path that is not the root of a drive, it should not be picking files/directories outside that path