SET @referenceId = <>;


DELETE FROM VH_AuditOnlineForm WHERE entryId = @referenceId;

DELETE FROM vh_onlineformrecord WHERE entryId = @referenceId;

DELETE FROM vh_onlineformfileupload WHERE onlineFormEntryId = @referenceId;