private void removePreparedObject(long objectId) {
        preparedObjects0.remove(objectId);
        preparedObjects1.remove(objectId);
        preparedObjectsTimeouts.computeIfPresent(objectId, (id, timeout) -> {
            timeout.cancel();
            return null;
        });
    }
Generate RemoveS3ObjectRecord for the deleted S3Objects.

@param deletedObjectIds the deleted S3Objects' ids
@return the result of the generation, contains the records which should be applied to the raft.
metadata/src/main/java/org/apache/kafka/controller/stream/S3ObjectControlManager.java