Matt, you can use the same report as a new report. Adjust some coding not required.
Just remember change the DataItem to point to Sales Header, remove the property (DataItemTableView) and make sure its filtered on "Document Type"=Quote.In the coding OnAfterGetRecord(), change it this.IF "Document Type" = "Document Type"=Quote THEN DELETE(TRUE);Note: The (TRUE) is important to carry out deleting related records!
Run it against a specific Quote No. Make sure you trace any related records that should have gotten deleted.
If you've found this thread useful, dive deeper into User Group community content by role