utility for deleting a byte array from a file