def _delete_resource(self, url):
params = {}<EOL>self._set_as_user(params)<EOL>headers = {'<STR_LIT>': '<STR_LIT:application/json>',<EOL>'<STR_LIT>': '<STR_LIT>'}<EOL>url = url + self._params(params)<EOL>response = DAO.deleteURL(url, headers)<EOL>if not (response.status == <NUM_LIT:200> or response.status == <NUM_LIT>):<EOL><INDENT>raise DataFailureException(url, response.status, response.data)<EOL><DEDENT>return response<EOL>
Canvas DELETE method.