You’re better off doing the 2 icon method rather than a toggle.
What you’ll do is add 2 inputs, one above the other and a transparent rectangle behind both.
Like this:
Icon would perform your toggle/create actions. In this case, it updates the user and creates an order.
Select “Icon 2” and click “Make a list”. Again, this case, we’re doing “orders”:
Set the maximum to 1.
Now, you have the option to delete the created record within the icon 2’ settings.