def METHOD_NAME(keywoard, contents):
    with CAT_GLOBALCOLLECTION:
        if keyword_items := SESSION.query(Cat_GlobalCollection).get(
            (keywoard, tuple(contents))
        ):
            if tuple(contents) in COLLECTION_SQL_.CONTENTS_LIST.get(keywoard, set()):
                COLLECTION_SQL_.CONTENTS_LIST.get(keywoard, set()).remove(
                    tuple(contents)
                )
            SESSION.delete(keyword_items)
            SESSION.commit()
            return True
        SESSION.close()
        return False