def METHOD_NAME(db, client, username, password):
    client.login(username=username, password=password)
    instances = OptionSet.objects.all()
    for instance in instances:
        url = reverse(urlnames['detail'], args=[instance.pk])
        response = client.delete(url)
        assert response.status_code == status_map['delete'][username], response.json()