def delete_device(self, rid):
headers = {<EOL>'<STR_LIT>': self.user_agent(),<EOL>'<STR_LIT:Content-Type>': self.content_type()<EOL>}<EOL>headers.update(self.headers())<EOL>r = requests.delete(    self.portals_url()+'<STR_LIT>'+rid, <EOL>headers=headers,<EOL>auth=self.auth())<EOL>if HTTP_STATUS.NO_CONTENT == r.status_code:<EOL><INDENT>print("<STR_LIT>".format(rid))<EOL>return True<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>".format(<EOL>r.status_code, r.reason))<EOL>r.raise_for_status()<EOL>return False<EOL><DEDENT>
Deletes device object with given rid

http://docs.exosite.com/portals/#delete-device