def METHOD_NAME(client):
    issue = f.IssueFactory()
    member = f.MembershipFactory(user=issue.project.owner,
                                 project=issue.project,
                                 is_admin=True)
    custom_attr_1 = f.IssueCustomAttributeFactory(project=issue.project)
    ct1_id = "{}".format(custom_attr_1.id)
    custom_attr_2 = f.IssueCustomAttributeFactory(project=issue.project)
    ct2_id = "{}".format(custom_attr_2.id)
    custom_attrs_val = issue.custom_attributes_values
    url = reverse("issues-detail", args=[issue.id])
    client.login(member.user)
    response = client.json.delete(url)
    assert response.status_code == 204
    assert not issue.__class__.objects.filter(id=issue.id).exists()
    assert not custom_attrs_val.__class__.objects.filter(id=custom_attrs_val.id).exists()