'Cleans up once the load testing is run and deletes the records.'

def delete(self):

    data = json.loads(open(self.filename('created.json'), 'r').read())
    for (obj, model) in (['installed', Installed], ['webapps', Webapp], ['users', UserProfile]):
        model.objects.filter(pk__in=data[obj]).delete()
