@utilities.arguments_not_none<EOL><INDENT>@utilities.handle_simple_sequencing<EOL>def delete_assessment_part(self, assessment_part_id):<DEDENT>
<EOL>if not isinstance(assessment_part_id, ABCId):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>if collection.find({'<STR_LIT>': str(assessment_part_id)}).count() != <NUM_LIT:0>:<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>try:<EOL><INDENT>apls = get_assessment_part_lookup_session(runtime=self._runtime,<EOL>proxy=self._proxy)<EOL>apls.use_unsequestered_assessment_part_view()<EOL>apls.use_federated_bank_view()<EOL>part = apls.get_assessment_part(assessment_part_id)<EOL>part.delete()<EOL><DEDENT>except AttributeError:<EOL><INDENT>collection.delete_one({'<STR_LIT>': ObjectId(assessment_part_id.get_identifier())})<EOL><DEDENT>
Removes an asessment part and all mapped items.

        arg:    assessment_part_id (osid.id.Id): the ``Id`` of the
                ``AssessmentPart``
        raise:  NotFound - ``assessment_part_id`` not found
        raise:  NullArgument - ``assessment_part_id`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure occurred
        *compliance: mandatory -- This method must be implemented.*