<jupyter_start><jupyter_text>List qualifications types<jupyter_code>qualification_types = client.list_qualification_types(MustBeRequestable=True,MustBeOwnedByCaller=True)['QualificationTypes']<jupyter_output><empty_output><jupyter_text>List HITs for Qualification Type<jupyter_code>client.list_hits_for_qualification_type(
    QualificationTypeId='33CI7FQ96GPR7ANGSCQJ9MK5FVL7OL',
)<jupyter_output><empty_output><jupyter_text>Delete each of qualification type<jupyter_code>for q in qualification_types:
    if q['QualificationTypeId']=="31MA9OBRUQ0JATJWGQ1433GVQCVPR3":
        print(q['QualificationTypeId'])
        hits = client.list_hits_for_qualification_type(QualificationTypeId=q['QualificationTypeId'],)
        if len(hits) == 0:
            response = client.delete_qualification_type(
            QualificationTypeId=q['QualificationTypeId'], 
            )
            print(response)
    if q['QualificationTypeId']=="33CI7FQ96GPR7ANGSCQJ9MK5FVL7OL":
        print(q['QualificationTypeId'])
        hits = client.list_hits_for_qualification_type(QualificationTypeId=q['QualificationTypeId'],)
        if len(hits['HITs']) == 0:
            response = client.delete_qualification_type(
            QualificationTypeId=q['QualificationTypeId'], 
            )
            print(response)<jupyter_output>31MA9OBRUQ0JATJWGQ1433GVQCVPR3
33CI7FQ96GPR7ANGSCQJ9MK5FVL7OL
{'ResponseMetadata': {'RequestId': 'dfbff397-df71-469a-b8b9-9932a6f02b9d', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amzn-requestid': 'dfbff397-df71-469a-b8b9-9932a6f02b9d', 'content-type': 'application/x-amz-json-1.1', 'content-length': '2', 'date': 'Fri, 12 Mar 2021 22:26:31 GMT'}, 'RetryAttempts': 0}}
{'fraction_non_alphanumeric': 0.1189767995240928, 'fraction_numerical': 0.06067816775728733, 'mean_word_length': 5.648221343873518, 'pattern_counts': {'":': 2, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '568996', 'license': 'MIT', 'n_tokens_mistral': 669, 'n_tokens_neox': 610, 'n_words': 63, 'path': 'src/notebooks/identification/delete_qual_test.ipynb', 'repo_name': 'sushmaakoju/mturk-task-helper', 'size': '1681'}