@utilities.arguments_not_none<EOL><INDENT>def delete_gradebook(self, gradebook_id):<DEDENT>
<EOL>if self._catalog_session is not None:<EOL><INDENT>return self._catalog_session.delete_catalog(catalog_id=gradebook_id)<EOL><DEDENT>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>if not isinstance(gradebook_id, ABCId):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>for object_catalog in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>obj_collection = JSONClientValidated('<STR_LIT>',<EOL>collection=object_catalog,<EOL>runtime=self._runtime)<EOL>if obj_collection.find({'<STR_LIT>': {'<STR_LIT>': [str(gradebook_id)]}}).count() != <NUM_LIT:0>:<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT><DEDENT>collection.delete_one({'<STR_LIT>': ObjectId(gradebook_id.get_identifier())})<EOL>
Deletes a ``Gradebook``.

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