<@U04UQ68083H> how to delete an registration after...
# ory-copilot
w
@chilly-king-10285 how to delete an registration after webhook action configured via ory cli
b
A message from kapa.ai
To delete a registration after webhook action configured via the Ory CLI, you need to follow these steps: 1. First, list all configured hooks for the registration flow to identify the webhook action you want to delete:
Copy code
ory get identity-config {project_id} \   --format=jsonpath='selfservice.flows.registration.after'
2. Check the JSON output to identify the array index of the webhook action you want to remove. 3. Once you've identified the index, use the following command to remove the webhook action:
Copy code
ory patch identity-config {project_id} \   --remove '/selfservice/flows/registration/after/hooks/{index}'
Replace
{project_id}
with your actual project ID and
{index}
with the array index of the webhook action you want to delete. This process is similar to disabling session revocation on login, as described in the [Login and registration webhooks and actions](https://www.ory.sh/docs/identities/sign-in/actions) documentation. If you need more specific information about managing webhook actions for registration, please note that the provided knowledge sources don't contain detailed instructions specifically for registration webhook actions. The process described above is inferred from the similar process for login actions.