Frediano pointed out that if the number of files is huge, it can break the loop because the shell cannot hold so many files.

I think what you are looking for is
```
#!/bin/bash

# Remove old rotated tapdisk logs

find /var/log/blktap -mtime +7 -type f -name tapdisk.*.log.*.gz -delete
```

That's all