<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def deleteVertex(self, document, waitForSync = False) : """deletes a vertex from the graph as well as al linked edges"""

        url = "%s/vertex/%s" % (self.URL, document._id)

        r = self.connection.session.delete(url, params = {'waitForSync' : waitForSync})
        data = r.json()
        if r.status_code == 200 or r.status_code == 202 :
            return True

        raise DeletionError("Unable to delete vertice, %s" % document._id, data)