How to use the document created in Action for variable (pass and delete)

Logic:

1) When the user presses a blue button (Continue) then document should be created in Firebase and user should be navigated to step 2 the of form. I have to pass created document

2) When the user press icon "Close" then document should be deleted if it has been created. I have to use created document for deleting.

I set Actions Backend Call (Create Document) and Navigate To. But I passed an important thing.

Questions:
1) How to use created document for passing a page parameter?

2) How to delete created document?

3 replies