adding the delete functionality for delete modules from streams