Implement stream deletion
- WriteEvents code cleaning