delete imported contract using script

trying to remove imported contracts with the help of ansible. i dont see any specific module for this so i tried to write it using aci_rest. my script is working fine and runs successfully but it’s not removing the contract still. would be really helpful if someone could help ! thanks

- name: Remove imported contracts
  hosts: 
  connection: local
  gather_facts: no
 
  tasks:
    - name: Delete imported contracts from tenants
      cisco.aci.aci_rest:
        hostname: "{{ inventory_hostname }}"
        username: "{{ username }}"
        password: "{{ password }}"
        validate_certs: no
        method: delete
        path: "api/node/mo/uni/tn-/brc-.json"```

Does the cisco.aci.aci_contract module help? I think the cisco.aci.aci_rest path may need to include the tenant and contract, for example /api/node/mo/uni/tn-{{ tenant }}/brc-{{ contract }}.json.