'Delete a library section from PlexPy. Also erases all history for the library.
Required parameters:
section_id (str):       The id of the Plex library section
Optional parameters:
None
Returns:
None'

@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of('admin'))
@addtoapi()
def delete_library(self, section_id, **kwargs):

    library_data = libraries.Libraries()
    if section_id:
        delete_row = library_data.delete(section_id=section_id)
        if delete_row:
            return {'message': delete_row}
    else:
        return {'message': 'no    data    received'}
