<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def DeleteInstance(r, instance, dry_run=False):
 """ Deletes an instance. @type instance: str @param instance: the instance to delete @rtype: int @return: job id """


    return r.request("delete", "/2/instances/%s" % instance,
                     query={"dry-run": dry_run})